[Bug fortran/78739] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1477
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78739 kargl at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED Target Milestone|--- |9.3 --- Comment #5 from kargl at gcc dot gnu.org --- Fixed on trunk and 9-branch. Thanks for bug report.
[Bug fortran/78739] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1477
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78739 --- Comment #4 from kargl at gcc dot gnu.org --- Author: kargl Date: Sat Aug 17 18:14:26 2019 New Revision: 274611 URL: https://gcc.gnu.org/viewcvs?rev=274611&root=gcc&view=rev Log: 2019-08-17 Steven G. Kargl PR fortran/78739 * match.c (gfc_match_st_function): When matching a statement function, need to check if the statement function name shadows the function name. 2019-08-17 Steven G. Kargl PR fortran/78739 * fortran.dg/pr78739.f90: New test. Added: branches/gcc-9-branch/gcc/testsuite/gfortran.dg/pr78739.f90 Modified: branches/gcc-9-branch/gcc/fortran/ChangeLog branches/gcc-9-branch/gcc/fortran/match.c branches/gcc-9-branch/gcc/testsuite/ChangeLog
[Bug fortran/78739] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1477
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78739 --- Comment #3 from kargl at gcc dot gnu.org --- Author: kargl Date: Sat Aug 17 14:39:51 2019 New Revision: 274605 URL: https://gcc.gnu.org/viewcvs?rev=274605&root=gcc&view=rev Log: 2019-08-17 Steven G. Kargl PR fortran/78739 * match.c (gfc_match_st_function): When matching a statement function, need to check if the statement function name shadows the function name. 2019-08-17 Steven G. Kargl PR fortran/78739 * fortran.dg/pr78739.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/pr78739.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/match.c trunk/gcc/testsuite/ChangeLog
[Bug fortran/78739] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1477
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78739 kargl at gcc dot gnu.org changed: What|Removed |Added Priority|P3 |P4 CC||kargl at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |kargl at gcc dot gnu.org --- Comment #2 from kargl at gcc dot gnu.org --- I have a patch that detects most cases of a statement function re-using the name of the containing function. The only situation that I cannot detect is function a() a() = x end function
[Bug fortran/78739] ICE in gfc_get_symbol_decl, at fortran/trans-decl.c:1477
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78739 Martin Liška changed: What|Removed |Added Keywords||ice-on-invalid-code Status|UNCONFIRMED |NEW Last reconfirmed||2016-12-09 CC||marxin at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Martin Liška --- Confirmed, all releases I have ICE (4.5.0+).