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: unassig...@gcc.gnu.org

        ReportedBy: arjen.mar...@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.

Reply via email to