The following code is invalid due to the "external sin" line. Nonetheless,
we get an ICE.
kargl[255] gfc4x -o z v.f90
v.f90: In function 'MAIN__':
v.f90:2: internal compiler error: in build_function_decl, at
fortran/trans-decl.c:1131
program a
external sin
print *, sin()
contains
integer function sin ()
sin = 1
end function sin
end program a
--
Summary: EXTERNAL statement cause ICE in trans-decl.c
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: kargl at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25813