[Bug fortran/17917] New: gfortran ICE on "equivalence"
olchansk at panix dot com
gcc-bugzilla@gcc.gnu.org
Sat Oct 9 23:24:00 GMT 2004
In "gcc version 4.0.0 20041009 (experimental)", the "equivalence" statement no
longer works. (I think it used to work). This is what I get:
[olchansk@tw15 gfortran_test]$ cat test_equiv.f90
module test_equiv
implicit none
private
real a(100)
integer b(100)
! Following error, unless "equivalence" is removed:
! /triumfcs/trshare/olchansk/gcc-tree-ssa/install/bin/gfortran -x f95 -c -o
test_equiv.o -O2 -g -Wall -Waliasing -Wline-truncation -Wsurprising
-Wunused-labels -fPIC -ffixed-line-length-132 test_equiv.f90
! test_equiv.f90:0: internal compiler error: backend decl for module variable
a already exists
! Please submit a full bug report,
! with preprocessed source if appropriate.
! See <URL:http://gcc.gnu.org/bugs.html> for instructions.
equivalence (a(1),b(1))
end module test_equiv
[olchansk@tw15 gfortran_test]$ make test_equiv.o
/triumfcs/trshare/olchansk/gcc-tree-ssa/install/bin/gfortran -x f95 -c -o
test_equiv.o -O2 -g -Wall -Waliasing -Wline-truncation -Wsurprising
-Wunused-labels -fPIC -ffixed-line-length-132 test_equiv.f90
Warning: test_equiv.f90:9: Line is being truncated
test_equiv.f90:0: internal compiler error: backend decl for module variable a
already exists
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make: *** [test_equiv.o] Error 1
[olchansk@tw15 gfortran_test]$
/triumfcs/trshare/olchansk/gcc-tree-ssa/install/bin/gfortran -v
Reading specs from
/triumfcs/trshare/olchansk/gcc-tree-ssa/install-20041008/lib/gcc/i686-pc-linux-gnu/4.0.0/specs
Configured with: ../gcc/configure
--prefix=/triumfcs/trshare/olchansk/gcc-tree-ssa/install-20041008
--with-mpfr-dir=/triumfcs/trshare/olchansk/gcc-tree-ssa/mpfr/mpfr-2.0.3
--with-gmp-dir=/triumfcs/trshare/olchansk/gcc-tree-ssa/mpfr/gmp-4.1.3
--enable-languages=c,f95
Thread model: posix
gcc version 4.0.0 20041009 (experimental)
K.O.
--
Summary: gfortran ICE on "equivalence"
Product: gcc
Version: 4.0.0
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17917
More information about the Gcc-bugs
mailing list