https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88902
--- Comment #11 from Jakub Jelinek ---
Author: jakub
Date: Fri Aug 30 11:28:22 2019
New Revision: 275088
URL: https://gcc.gnu.org/viewcvs?rev=275088=gcc=rev
Log:
Backported from mainline
2019-01-19 Jakub Jelinek
PR
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88902
Jakub Jelinek changed:
What|Removed |Added
Status|ASSIGNED|RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88902
--- Comment #9 from Jakub Jelinek ---
Author: jakub
Date: Thu Feb 7 14:33:07 2019
New Revision: 268623
URL: https://gcc.gnu.org/viewcvs?rev=268623=gcc=rev
Log:
Backported from mainline
2019-01-19 Jakub Jelinek
PR
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88902
--- Comment #8 from Jakub Jelinek ---
Fixed on the trunk so far.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88902
--- Comment #7 from Jakub Jelinek ---
Author: jakub
Date: Sat Jan 19 08:43:12 2019
New Revision: 268091
URL: https://gcc.gnu.org/viewcvs?rev=268091=gcc=rev
Log:
PR fortran/88902
* trans-decl.c (gfc_get_symbol_decl): Don't add
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88902
Jakub Jelinek changed:
What|Removed |Added
Status|NEW |ASSIGNED
Assignee|unassigned
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88902
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment #5
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88902
--- Comment #4 from Jakub Jelinek ---
The problem is that gfc_add_decl_to_parent_function is called multiple times on
and thus for that VAR_DECL DECL_CHAIN
(decl) == decl (or in theory there could be longer loop, but any loop in
DECL_CHAIN is