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