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

             Bug #: 51991
           Summary: Wrong error message with variables named "SAVE*"
    Classification: Unclassified
           Product: gcc
           Version: fortran-dev
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: bard...@iram.fr


Created attachment 26455
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26455
This file raises an error, but with wrong message

Hello,

in the attached you will find a subroutine which raises an error (on purpose).

While one expect the following message:

gfortran-error.f90:11.11:

    savej = a%j
               1
Error: 'j' at (1) is not a member of the 'mytyp' structure


gfortran (4.7.0 20111119) raises:


gfortran-error.f90:11.9:

    savej = a%j
         1
Error: Syntax error in SAVE statement at (1)

Reply via email to