- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is the following code legal Fortran 2008? I have two compilers that differ in opinion here:
BLOCK RETURN END BLOCK
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, it is.
8.1.2.2 Execution of a block
2 Execution of the block is completed when
• the last executable construct in the sequence is executed,
• a branch (8.2) within the block that has a branch target outside the block occurs,
• a RETURN statement within the block is executed,
• an EXIT statement within the block that belongs to the block or an outer construct is executed, or
• a CYCLE statement within the block that belongs to an outer construct is executed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Steve for the clarification.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page