[Bug fortran/47191] New: Misleading error message if part-ref starts with DATA
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 6 14:55:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47191
Summary: Misleading error message if part-ref starts with DATA
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: burnus@gcc.gnu.org
Reported at http://gcc.gnu.org/ml/fortran/2011-01/msg00006.html
Like always: Choosing which error the user made, is a bit difficult; however,
the message below is a bit confusing. If a different variable name than DATA is
used, the "correct" error message is printed. (Whatever "correct" means ;-)
type(parameters) :: data
data % result = 0.0
1
Error: Syntax error in DATA statement at (1)
Expected:
data % result = 0.0
1
Error: 'result' at (1) is not a member of the 'parameters' structure
More information about the Gcc-bugs
mailing list