From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10803 invoked by alias); 11 Feb 2013 08:58:59 -0000 Received: (qmail 10771 invoked by uid 48); 11 Feb 2013 08:58:40 -0000 From: "arjen.markus at deltares dot nl" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/56284] New: ICE with contained routine which inappropriately compares a string and a number Date: Mon, 11 Feb 2013 08:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: arjen.markus at deltares dot nl X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2013-02/txt/msg01030.txt.bz2 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.