The following (ill-formed, I think) code causes current gfortran to crash with an ICE: module foo implicit none public bar contains end module foo ~/tmp>gfortran -v -c bug.f90 Reading specs from /afs/mpa/data/martin/ugcc/lib/gcc/i686-pc-linux-gnu/3.5.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 --disable-checking Thread model: posix gcc version 3.5.0 20040517 (experimental) /afs/mpa/data/martin/ugcc/libexec/gcc/i686-pc-linux-gnu/3.5.0/f951 bug.f90 -quiet -dumpbase bug.f90 -mtune=pentiumpro -auxbase bug -version -o /tmp/ccsbxSgf.s GNU F95 version 3.5.0 20040517 (experimental) (i686-pc-linux-gnu) compiled by GNU C version 3.5.0 20040517 (experimental). GGC heuristics: --param ggc-min-expand=63 --param ggc-min-heapsize=63317 bug.f90:0: internal compiler error: in gfc_typenode_for_spec, at fortran/trans-types.c:303 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions.
Confirmed, I think this is a dup of bug 13575
Indeed, this is the same problem as PR 13575. *** This bug has been marked as a duplicate of 13575 ***