public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31470] New: A program with an empty CONTAINS block is illegal, but gfortran accepts it
@ 2007-04-04 16:30 michael dot a dot richmond at nasa dot gov
2007-04-04 16:36 ` [Bug fortran/31470] " burnus at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: michael dot a dot richmond at nasa dot gov @ 2007-04-04 16:30 UTC (permalink / raw)
To: gcc-bugs
A program with an empty CONTAINS block is illegal, but gfortran accepts it:
PROGRAM test197
CONTAINS
END PROGRAM test197
--
Summary: A program with an empty CONTAINS block is illegal, but
gfortran accepts it
Product: gcc
Version: unknown
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=31470
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug fortran/31470] A program with an empty CONTAINS block is illegal, but gfortran accepts it
2007-04-04 16:30 [Bug fortran/31470] New: A program with an empty CONTAINS block is illegal, but gfortran accepts it michael dot a dot richmond at nasa dot gov
@ 2007-04-04 16:36 ` burnus at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: burnus at gcc dot gnu dot org @ 2007-04-04 16:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from burnus at gcc dot gnu dot org 2007-04-04 17:35 -------
> A program with an empty CONTAINS block is illegal
Well, this is a matter of arguments. It is invalid in Fortran 90, 95 and 2003.
But it is allowed in the current draft for Fortran 2008.
Therefore, we decided to allowed it by default.
Use -std=f2003 or -std=f95 to print an error.
END PROGRAM test197
1
Error: Extension: CONTAINS statement without FUNCTION or SUBROUTINE statement
at (1)
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |WONTFIX
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31470
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-04-04 16:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-04 16:30 [Bug fortran/31470] New: A program with an empty CONTAINS block is illegal, but gfortran accepts it michael dot a dot richmond at nasa dot gov
2007-04-04 16:36 ` [Bug fortran/31470] " burnus 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).