From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20235 invoked by alias); 9 Oct 2004 23:24:10 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 20227 invoked by uid 48); 9 Oct 2004 23:24:09 -0000 Date: Sat, 09 Oct 2004 23:24:00 -0000 From: "olchansk at panix dot com" To: gcc-bugs@gcc.gnu.org Message-ID: <20041009232408.17917.olchansk@panix.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug fortran/17917] New: gfortran ICE on "equivalence" X-Bugzilla-Reason: CC X-SW-Source: 2004-10/txt/msg01249.txt.bz2 List-Id: 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 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 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