This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/31466] spurious error message when inner parentheses of a FORMAT statement are empty



------- Comment #1 from burnus at gcc dot gnu dot org  2007-04-03 21:58 -------
I believe this bug is invalid as the format string is invalid.

NAG f95 also claims:
*** Malformed format specification

Reasoning:
R1001 format-stmt is FORMAT format-specification
R1002 format-specification is ( [ format-item-list ] )

Thus the question is whether "()" is a valid format-item(-list).

R1003 format-item is [ r ] data-edit-desc
                  or control-edit-desc
                  or char-string-edit-desc
                  or [ r ] ( format-item-list )
R1004 r is int-literal-constant

I would claim that "()" is not
- a data-edit-desc
- a char-string-edit-desc

It matches however, "( format-item-list )", but then I would claim that "" is
not:
- a data-edit-desc
- a char-string-edit-desc
- ( format-item-list )


-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]