[Bug fortran/39555] concat-op not allowed in STOP

2010-05-23 Thread burnus at gcc dot gnu dot org


--- 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



[Bug fortran/39555] concat-op not allowed in STOP

2010-05-23 Thread jvdelisle at gcc dot gnu dot org


--- 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



[Bug fortran/39555] concat-op not allowed in STOP

2009-03-28 Thread fxcoudert at gcc dot gnu dot org


--- 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:

R855stop-stmt is STOP [ stop-code ]
R857stop-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|-00-00 00:00:00 |2009-03-28 13:37:28
   date||


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39555



[Bug fortran/39555] concat-op not allowed in STOP

2009-03-27 Thread burnus at gcc dot gnu dot org


--- 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



[Bug fortran/39555] concat-op not allowed in STOP

2009-03-27 Thread kargl 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