[Bug fortran/12481] New: gfortran ICE with "common" in modules
olchansk at panix dot com
gcc-bugzilla@gcc.gnu.org
Wed Oct 1 17:53:00 GMT 2003
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12481
Summary: gfortran ICE with "common" in modules
Product: gcc
Version: tree-ssa
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: olchansk at panix dot com
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
Attached valid code produces an ICE. The ICE goes away if the "common" name is
declared as integer.
P.S. Can we have the ICE print the offending variable name?
[olchansk@dork gfortran_test]$ cat test1.f90
module foo
implicit none
integer baz
!integer bar ! uncomment this line to avoid the ICE
common/bar/ baz
end module foo
[olchansk@dork gfortran_test]$
/triumfcs/trshare/olchansk/gcc-tree-ssa/install/bin/gfortran -c test1.f90
test1.f90:0: internal compiler error: in gfc_typenode_for_spec, at
fortran/trans-types.c:307
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
[olchansk@dork gfortran_test]$
/triumfcs/trshare/olchansk/gcc-tree-ssa/install/bin/gfortran -v
Reading specs from
/triumfcs/trshare/olchansk/gcc-tree-ssa/install-20030930/lib/gcc/i686-pc-linux-gnu/3.5-tree-ssa/specs
Configured with: ../gcc/configure
--prefix=/triumfcs/trshare/olchansk/gcc-tree-ssa/install-20030930
--enable-languages=c,c++,f95,f77
Thread model: posix
gcc version 3.5-tree-ssa 20031001 (merged 20030923)
K.O. olchansk@triumf.ca
More information about the Gcc-bugs
mailing list