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: unassig...@gcc.gnu.org ReportedBy: bur...@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