This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31466] spurious error message when inner parentheses of a FORMAT statement are empty
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Apr 2007 20:58:46 -0000
- Subject: [Bug fortran/31466] spurious error message when inner parentheses of a FORMAT statement are empty
- References: <bug-31466-14284@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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