public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31466] New: spurious error message when inner parentheses of a FORMAT statement are empty
@ 2007-04-03 18:04 michael dot a dot richmond at nasa dot gov
2007-04-03 20:58 ` [Bug fortran/31466] " burnus at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: michael dot a dot richmond at nasa dot gov @ 2007-04-03 18:04 UTC (permalink / raw)
To: gcc-bugs
When I compile the program listed below I receive a spurious error message:
test134.f90:2.11:
1 FORMAT(())
1
Error: Unexpected element in format string at (1)
PROGRAM test134
1 FORMAT(())
END
--
Summary: spurious error message when inner parentheses of a
FORMAT statement are empty
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: michael dot a dot richmond at nasa dot gov
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31466
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/31466] spurious error message when inner parentheses of a FORMAT statement are empty
2007-04-03 18:04 [Bug fortran/31466] New: spurious error message when inner parentheses of a FORMAT statement are empty michael dot a dot richmond at nasa dot gov
@ 2007-04-03 20:58 ` burnus at gcc dot gnu dot org
2007-04-03 23:28 ` jvdelisle at gcc dot gnu dot org
2007-04-07 15:54 ` tobi at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-04-03 20:58 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/31466] spurious error message when inner parentheses of a FORMAT statement are empty
2007-04-03 18:04 [Bug fortran/31466] New: spurious error message when inner parentheses of a FORMAT statement are empty michael dot a dot richmond at nasa dot gov
2007-04-03 20:58 ` [Bug fortran/31466] " burnus at gcc dot gnu dot org
@ 2007-04-03 23:28 ` jvdelisle at gcc dot gnu dot org
2007-04-07 15:54 ` tobi at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2007-04-03 23:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from jvdelisle at gcc dot gnu dot org 2007-04-04 00:28 -------
Lahey reports this as a fatal syntax error.
Checking file SOURCE.F90.
Checking program unit TEST134 at line 1.
Line 2, file SOURCE.F90
1 FORMAT(())
| |
FATAL -- Essential LF90 requires that defined labels be referenced.
FATAL -- Syntax error.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31466
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/31466] spurious error message when inner parentheses of a FORMAT statement are empty
2007-04-03 18:04 [Bug fortran/31466] New: spurious error message when inner parentheses of a FORMAT statement are empty michael dot a dot richmond at nasa dot gov
2007-04-03 20:58 ` [Bug fortran/31466] " burnus at gcc dot gnu dot org
2007-04-03 23:28 ` jvdelisle at gcc dot gnu dot org
@ 2007-04-07 15:54 ` tobi at gcc dot gnu dot org
2 siblings, 0 replies; 4+ messages in thread
From: tobi at gcc dot gnu dot org @ 2007-04-07 15:54 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from tobi at gcc dot gnu dot org 2007-04-07 16:54 -------
I verified Tobias' reading of the standard. Closing as invalid. Perhaps the
error message could be more helpful.
--
tobi at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tobi at gcc dot gnu dot org
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31466
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-04-07 15:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-03 18:04 [Bug fortran/31466] New: spurious error message when inner parentheses of a FORMAT statement are empty michael dot a dot richmond at nasa dot gov
2007-04-03 20:58 ` [Bug fortran/31466] " burnus at gcc dot gnu dot org
2007-04-03 23:28 ` jvdelisle at gcc dot gnu dot org
2007-04-07 15:54 ` tobi at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).