The following testcase causes an ICE in the current gfortran. The code seems ill-formed to me, because the name "n" was already defined as a constant in the module scope, but I'm not sure. This was originally reported by Vivek Rao ([EMAIL PROTECTED]). module zz integer, parameter :: n=2 ! causes ICE contains subroutine xx(n) call yy(n) end subroutine xx end module zz ~/tmp>gfortran -v -c bug.f90 Reading specs from /afs/mpa/data/martin/ugcc/lib/gcc/i686-pc-linux-gnu/4.0.0/specs Configured with: /scratch/gcc/configure --quiet --prefix=/afs/mpa/data/martin/ugcc --enable-languages=c++,f95 --with-gmp=/afs/mpa/data/martin/mygmp Thread model: posix gcc version 4.0.0 20041117 (experimental) /afs/mpa/data/martin/ugcc/libexec/gcc/i686-pc-linux-gnu/4.0.0/f951 bug.f90 -quiet -dumpbase bug.f90 -mtune=pentiumpro -auxbase bug -version -o /tmp/ccVLWgWD.s GNU F95 version 4.0.0 20041117 (experimental) (i686-pc-linux-gnu) compiled by GNU C version 4.0.0 20041117 (experimental). GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 bug.f90: In function 'xx': bug.f90:4: internal compiler error: in gfc_get_symbol_decl, at fortran/trans-decl.c:704 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions.
-- Summary: [gfortran] ICE on invalid(?) code in gfc_get_symbol_decl() Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: martin at mpa-garching dot mpg dot de CC: gcc-bugs 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=18525