[Bug fortran/56520] New: Syntax error causes misleading message: "Invalid character in name"
arjen.markus at deltares dot nl
gcc-bugzilla@gcc.gnu.org
Mon Mar 4 13:44:00 GMT 2013
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: unassigned@gcc.gnu.org
ReportedBy: arjen.markus@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
More information about the Gcc-bugs
mailing list