- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The online documentation for BLOCK states that:
[...]
block
Is a sequence of zero or more statements or constructs, except for the following:
- CONTAINS (outside of a TYPE definition)
- ENTRY
- IMPORT (outside of a TYPE definition)
- Statement functions
I believe that the statement in bold is incorrect: it is possible (and in fact, rather useful) to use IMPORT statements inside BLOCK constructs.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, that's new in F2018 and this was apparently missed by the Intel team.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Both ifort and ifx accept IMPORT in a BLOCK construct. I submitted a bug report for the documentation to catch up! DOC-10639
Thanks for reporting this. I'm not sure it this will make the cutoff date for the next release.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The tech writer snuck the fix in. The statement IMPORT (outside of a TYPE definition) relating to BLOCK is removed from the latest Fortran DGR (Developer Guide and Reference).
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