This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/17917] gfortran ICE on "equivalence"
- From: "paulthomas2 at wanadoo dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Dec 2004 11:37:04 -0000
- Subject: [Bug fortran/17917] gfortran ICE on "equivalence"
- References: <20041009232408.17917.olchansk@panix.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From paulthomas2 at wanadoo dot fr 2004-12-18 11:37 -------
(In reply to comment #1)
> Confirmed.
Note that this bug is provoked by this minimalist version of the above
module test_equiv !Bug 17917
real a(2),b(4)
equivalence (a(1),b(3))
end module test_equiv
However, equivalence does what it should in programs, subroutines and
functions. For example, this works correctly:
PROGRAM test_equiv ! .not.Bug 17917
common b
real a(2)
INTEGER b(4)
equivalence (a(1),b(3))
b=(/1,2,3,4/)
PRINT *,a
end PROGRAM test_equiv
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17917