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



             Bug #: 56520

           Summary: Syntax error causes misleading message: "Invalid

                    character in name"

    Classification: Unclassified

           Product: gcc

           Version: 4.7.1

            Status: UNCONFIRMED

          Severity: normal

          Priority: P3

         Component: fortran

        AssignedTo: unassig...@gcc.gnu.org

        ReportedBy: arjen.mar...@deltares.nl





An extra parenthesis at the end of a statement leads to the error message:

   Invalid character in name at (1)



The message has nothing to do with the actual error.



Here is a small program to reproduce it:



! misleading.f90 --

!     Syntax error is reported with a misleading message

!

program misleading

    implicit none



    real :: a, b, c



    a = 1.0

    b = 1.0



    c = exp(-a*b) )

end program misleading

Reply via email to