The following simple procedure causes an ICE: subroutine A() EXTERNAL A END
Error message with compiler "gcc version 4.2.0 20051124 (experimental)" is: crash2.f:0: internal compiler error: in build_function_decl, at fortran/trans-decl.c:1114 With compiler "gcc version 4.0.2 20050808 (prerelease) (Ubuntu 4.0.1-4ubuntu9)" the message is essentially the same: crash2.f:0: internal compiler error: in build_function_decl, at fortran/trans-decl.c:1026 -- Summary: ICE with external declaration inside same procedure Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code Severity: normal Priority: P3 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: jb at gcc dot gnu dot org GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25024