The error message thingo points to the wrong place in the
bad line and/or gives a misleading diagnostic.  This isn't
all that important.  I only found it because I'm trying to
find the source of an internal compiler error and if I mess
around with things, this one crops up and hides the other.

Dick Hendrickson

       module bad_message
! fails on Windows XP
! gcc version 4.4.0 20080312 (experimental) [trunk revision 133139]



      integer,PARAMETER :: I3(10) = (/(J1,  J1=10,1,-1)/)

      integer,PARAMETER :: I2(10) = (/(J1,  J1=its_bad,1,-1)/)

      end module

gfortran%gfortran module_bad_message.f
module_bad_message.f:9.38:

      integer,PARAMETER :: I2(10) = (/(J1,  J1=its_bad,1,-1)/)
                                     1
Error: Invalid character in name at (1)


-- 
           Summary: error pointer wrong in PARAMETER
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dick dot hendrickson at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35779

Reply via email to