This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/39555] concat-op not allowed in STOP
- From: "kargl at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Mar 2009 03:40:36 -0000
- Subject: [Bug fortran/39555] concat-op not allowed in STOP
- References: <bug-39555-13648@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from kargl at gcc dot gnu dot org 2009-03-28 03:40 -------
(In reply to comment #1)
> I think it is allowed in Fortran 2008 (could also be F2003 - I don't recall).
> Since that Fortran version also "STOP <integer-expression>" is allowed.
>
It is not allowed in F2003.
8.4 STOP statement
R849 stop-stmt is STOP [ stop-code ]
R850 stop-code is scalar-char-constant
or digit [ digit [ digit [ digit [ digit ] ] ] ]
The pdf I have marked as F2008 also contains the above text.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39555