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

Documentation question: ATTRIBUTES DEFAULT placement

ereisch
New Contributor II
130 Views

In the compiler manual for ATTRIBUTES DEFAULT, it doesn't indicate where in the program (or subprogram) this clause is required to be located (or if it even has such a requirement).  Scanning through the Intel-supplied f90 files in compiler/latest/linux/compiler/include, it appears as though they are inside the interface block, and specifically inside the subprogram definition block they are modifying.  But is this a requirement for proper operation?  A quick test seems to suggest it is not, but it would be nice if the placement of this directive were called out explicitly in the reference manual.  Thanks!

P.S. -- Thanks for the library; the Intel-optimized routines run laps around my generic implementations of them.

0 Kudos
1 Reply
andrew_4619
Honored Contributor II
116 Views

To quote Dr Fortran "The purpose of DEFAULT is to prevent switches such as /iface from having an effect. With DEFAULT in the list, none of the characteristics can be changed by compiler switches."

0 Kudos
Reply