public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/44602]  New: [F2008] EXIT: Jump to end of construct
@ 2010-06-20 19:58 burnus at gcc dot gnu dot org
  2010-06-20 20:52 ` [Bug fortran/44602] " burnus at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: burnus at gcc dot gnu dot org @ 2010-06-20 19:58 UTC (permalink / raw)
  To: gcc-bugs

Fortran 2003 only had:
   R844 exit-stmt is EXIT [ do-construct-name ]
while Fortran 2008 (FDIS) has:
   R850 exit-stmt is EXIT [ construct-name ]

While with "EXIT" one only exits the innermost construct, F2008 also allows to
exit other constructs; looking at 8.1 one finds the following constructs:
- ASSOCIATE
- BLOCK
- CRITICAL
- DO
- IF
- SELECT CASE
- SELECT TYPE

of which in CRITICAL and DO CONCURRENT it is invalid to jump to their construct
label (or outside the construct) cf. C845. This is already checked for
CRITICAL.


-- 
           Summary: [F2008] EXIT: Jump to end of construct
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          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=44602


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-09-03  8:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-20 19:58 [Bug fortran/44602] New: [F2008] EXIT: Jump to end of construct burnus at gcc dot gnu dot org
2010-06-20 20:52 ` [Bug fortran/44602] " burnus at gcc dot gnu dot org
2010-06-21  7:41 ` burnus at gcc dot gnu dot org
2010-07-23  8:56 ` burnus at gcc dot gnu dot org
2010-08-30 12:08 ` domob at gcc dot gnu dot org
2010-08-30 18:27 ` domob at gcc dot gnu dot org
2010-09-03  8:02 ` domob at gcc dot gnu dot org
2010-09-03  8:04 ` domob 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).