This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/56284] New: ICE with contained routine which inappropriately compares a string and a number
- From: "arjen.markus at deltares dot nl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 11 Feb 2013 08:58:39 +0000
- Subject: [Bug fortran/56284] New: ICE with contained routine which inappropriately compares a string and a number
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56284
Bug #: 56284
Summary: ICE with contained routine which inappropriately
compares a string and a number
Classification: Unclassified
Product: gcc
Version: 4.7.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: arjen.markus@deltares.nl
Created attachment 29414
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29414
Code that causes the compiler to fail
The attached code causes an ICE in gfortran 4.7.2 (and 4.7.1) on Windows 7.
The fact that the routine is contained in a derived type is essential for the
occurrence of the ICE.
On my system there is just the message that an ICE occurred, if I comment out
the lines "contains" and "procedure :: getRecord", then the compiler rightly
complains about the mistake in the getRecord routine.