Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Small documentation error

OP1
New Contributor II
484 Views

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.

 

0 Kudos
3 Replies
Steve_Lionel
Honored Contributor III
453 Views

Yes, that's new in F2018 and this was apparently missed by the Intel team.

0 Kudos
Barbara_P_Intel
Moderator
369 Views

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.

 

 

0 Kudos
Barbara_P_Intel
Moderator
281 Views

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

 

 

0 Kudos
Reply