public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/39555] New: concat-op not allowed in STOP
@ 2009-03-25 18:27 dfranke at gcc dot gnu dot org
2009-03-27 23:28 ` [Bug fortran/39555] " burnus at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: dfranke at gcc dot gnu dot org @ 2009-03-25 18:27 UTC (permalink / raw)
To: gcc-bugs
The following is illegal (only digits or a character constant can follow STOP):
$> cat stop.f90
STOP "a" // "constant"
END
$> gfortran-svn stop.f90 && ./a.out
STOP aconstant
gcc version 4.4.0 20090324 (experimental) (GCC)
--
Summary: concat-op not allowed in STOP
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Keywords: diagnostic
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dfranke at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39555
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/39555] concat-op not allowed in STOP
2009-03-25 18:27 [Bug fortran/39555] New: concat-op not allowed in STOP dfranke at gcc dot gnu dot org
@ 2009-03-27 23:28 ` burnus at gcc dot gnu dot org
2009-03-28 3:40 ` kargl at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-03-27 23:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from burnus at gcc dot gnu dot org 2009-03-27 23:28 -------
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.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39555
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/39555] concat-op not allowed in STOP
2009-03-25 18:27 [Bug fortran/39555] New: concat-op not allowed in STOP dfranke at gcc dot gnu dot org
2009-03-27 23:28 ` [Bug fortran/39555] " burnus at gcc dot gnu dot org
@ 2009-03-28 3:40 ` kargl at gcc dot gnu dot org
2009-03-28 13:37 ` fxcoudert at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: kargl at gcc dot gnu dot org @ 2009-03-28 3:40 UTC (permalink / raw)
To: gcc-bugs
------- 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/39555] concat-op not allowed in STOP
2009-03-25 18:27 [Bug fortran/39555] New: concat-op not allowed in STOP dfranke at gcc dot gnu dot org
2009-03-27 23:28 ` [Bug fortran/39555] " burnus at gcc dot gnu dot org
2009-03-28 3:40 ` kargl at gcc dot gnu dot org
@ 2009-03-28 13:37 ` fxcoudert at gcc dot gnu dot org
2010-05-23 10:21 ` burnus at gcc dot gnu dot org
2010-05-23 14:46 ` jvdelisle at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2009-03-28 13:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from fxcoudert at gcc dot gnu dot org 2009-03-28 13:37 -------
(In reply to comment #2)
> 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 ] ] ] ]
I agree with you for F2003. For F2008, however, the draft I have
(08-007r1:2008/02/19) says:
R855 stop-stmt is STOP [ stop-code ]
R857 stop-code is scalar-char-initialization-expr
or scalar-int-initialization-expr
--
fxcoudert at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |minor
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-03-28 13:37:28
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39555
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/39555] concat-op not allowed in STOP
2009-03-25 18:27 [Bug fortran/39555] New: concat-op not allowed in STOP dfranke at gcc dot gnu dot org
` (2 preceding siblings ...)
2009-03-28 13:37 ` fxcoudert at gcc dot gnu dot org
@ 2010-05-23 10:21 ` burnus at gcc dot gnu dot org
2010-05-23 14:46 ` jvdelisle at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-05-23 10:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from burnus at gcc dot gnu dot org 2010-05-23 10:20 -------
Now that PR 43851 has been fixed, can we close this PR as WONTFIX?
[Checking the constraints for -std=f2003 is quite difficult - as it turned out
- and Fortran 2008 allows any constant expression (= 'initialization
expression' in F2003 lingo).]
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39555
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/39555] concat-op not allowed in STOP
2009-03-25 18:27 [Bug fortran/39555] New: concat-op not allowed in STOP dfranke at gcc dot gnu dot org
` (3 preceding siblings ...)
2010-05-23 10:21 ` burnus at gcc dot gnu dot org
@ 2010-05-23 14:46 ` jvdelisle at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: jvdelisle at gcc dot gnu dot org @ 2010-05-23 14:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from jvdelisle at gcc dot gnu dot org 2010-05-23 14:46 -------
yes, lets close
--
jvdelisle at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |WONTFIX
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39555
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-05-23 14:46 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-25 18:27 [Bug fortran/39555] New: concat-op not allowed in STOP dfranke at gcc dot gnu dot org
2009-03-27 23:28 ` [Bug fortran/39555] " burnus at gcc dot gnu dot org
2009-03-28 3:40 ` kargl at gcc dot gnu dot org
2009-03-28 13:37 ` fxcoudert at gcc dot gnu dot org
2010-05-23 10:21 ` burnus at gcc dot gnu dot org
2010-05-23 14:46 ` jvdelisle 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).