[Bug fortran/66044] ICE on misplaced entry statement
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66044 --- Comment #4 from kargl at gcc dot gnu.org --- Author: kargl Date: Tue May 19 17:47:12 2015 New Revision: 223405 URL: https://gcc.gnu.org/viewcvs?rev=223405root=gccview=rev Log: 2015-05-19 Steven G. Kargl ka...@gcc.gnu.org PR fortran/66044 * decl.c(gfc_match_entry): Change a gfc_internal_error() into a gfc_error() 2015-05-19 Steven G. Kargl ka...@gcc.gnu.org PR fortran/66044 * gfortran.dg/entry_21.f90: New test. Added: branches/gcc-5-branch/gcc/testsuite/gfortran.dg/entry_21.f90 Modified: branches/gcc-5-branch/gcc/fortran/ChangeLog branches/gcc-5-branch/gcc/fortran/decl.c branches/gcc-5-branch/gcc/testsuite/ChangeLog
[Bug fortran/66044] ICE on misplaced entry statement
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66044 kargl at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED Target Milestone|--- |5.2 --- Comment #5 from kargl at gcc dot gnu.org --- Fixed on trunk and 5-branch. Thanks for the bug report.
[Bug fortran/66044] ICE on misplaced entry statement
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66044 --- Comment #3 from kargl at gcc dot gnu.org --- Author: kargl Date: Mon May 18 22:06:48 2015 New Revision: 223321 URL: https://gcc.gnu.org/viewcvs?rev=223321root=gccview=rev Log: 2015-05-18 Steven G. Kargl ka...@gcc.gnu.org PR fortran/66044 * decl.c(gfc_match_entry): Change a gfc_internal_error() into a gfc_error() 2015-05-18 Steven G. Kargl ka...@gcc.gnu.org PR fortran/66044 * gfortran.dg/entry_21.f90: New test. Added: trunk/gcc/testsuite/gfortran.dg/entry_21.f90 Modified: trunk/gcc/fortran/ChangeLog trunk/gcc/fortran/decl.c trunk/gcc/testsuite/ChangeLog
[Bug fortran/66044] ICE on misplaced entry statement
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66044 kargl at gcc dot gnu.org changed: What|Removed |Added Status|RESOLVED|NEW Last reconfirmed||2015-05-07 CC||kargl at gcc dot gnu.org Resolution|DUPLICATE |--- Ever confirmed|0 |1 --- Comment #2 from kargl at gcc dot gnu.org --- Confirmed. This appears to be an intentional ICE as gfc_match_entry explicitly calls gfc_internal_error. As this is a programmer error and not an internal compiler error. The following patch is probably the correct solution: Index: decl.c === --- decl.c (revision 222869) +++ decl.c (working copy) @@ -5592,7 +5592,7 @@ gfc_match_entry (void) a contained subprogram); break; default: - gfc_internal_error (gfc_match_entry(): Bad state); + gfc_error (Unexpected ENTRY statement at %C); } return MATCH_ERROR; } This then yields % gfc6 -c po.f90 po.f90:4:7: entry e 1 Error: Unexpected ENTRY statement at (1) po.f90:10:13: entry e 1 Error: Unexpected ENTRY statement at (1)
[Bug fortran/66044] ICE on misplaced entry statement
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66044 Dominique d'Humieres dominiq at lps dot ens.fr changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE --- Comment #1 from Dominique d'Humieres dominiq at lps dot ens.fr --- It looks like a duplicate of pr50539. *** This bug has been marked as a duplicate of bug 50539 ***