public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/45426] New: Fixed-form: END may not be continued
@ 2010-08-27 10:10 burnus at gcc dot gnu dot org
2010-08-27 10:11 ` [Bug fortran/45426] " burnus at gcc dot gnu dot org
0 siblings, 1 reply; 3+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-08-27 10:10 UTC (permalink / raw)
To: gcc-bugs
Fortran 2008 (and earlier) have:
"3.3.3.5 Fixed form statements"
"The program unit END statement shall not be continued. A statement whose
initial line appears to be a program unit END statement shall not be
continued."
(That applies to all END: "A program unit is a main program, an
external subprogram, a module, a submodule, or a block data program unit.")
gfortran currently does not diagnose this:
a) EXAMPLE 1: initial line appears to be a program unit END statement
------------
integer :: ender
end
+er = 5
print *, ender
end
b) EXAMPLE 2: END statement which is continued
------------
subroutine test
end
* subroutine test
Expected: With -std=f2008 / -pedantic, the continuation line is rejected /
being warned for - with -std=gnu/legacy it is accepted. Intel's ifort prints
with -stand f03:
test.f(2): error #5269: Operator END of program unit cannot be continued.
end
------^
Though I do not like Intel's wording.
--
Summary: Fixed-form: END may not be continued
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Keywords: accepts-invalid
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: burnus at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45426
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/45426] Fixed-form: END may not be continued
2010-08-27 10:10 [Bug fortran/45426] New: Fixed-form: END may not be continued burnus at gcc dot gnu dot org
@ 2010-08-27 10:11 ` burnus at gcc dot gnu dot org
0 siblings, 0 replies; 3+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-08-27 10:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from burnus at gcc dot gnu dot org 2010-08-27 10:11 -------
I learned about this restriction at
http://groups.google.com/group/comp.lang.fortran/msg/94c45e3d727f49fc
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45426
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug fortran/45426] Fixed-form: END may not be continued
[not found] <bug-45426-4@http.gcc.gnu.org/bugzilla/>
@ 2013-12-29 12:59 ` dominiq at lps dot ens.fr
0 siblings, 0 replies; 3+ messages in thread
From: dominiq at lps dot ens.fr @ 2013-12-29 12:59 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45426
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2013-12-29
Ever confirmed|0 |1
--- Comment #2 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Still present at r206227.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-12-29 12:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-27 10:10 [Bug fortran/45426] New: Fixed-form: END may not be continued burnus at gcc dot gnu dot org
2010-08-27 10:11 ` [Bug fortran/45426] " burnus at gcc dot gnu dot org
[not found] <bug-45426-4@http.gcc.gnu.org/bugzilla/>
2013-12-29 12:59 ` dominiq at lps dot ens.fr
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).