This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/56284] New: ICE with contained routine which inappropriately compares a string and a number


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]