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

Automatic pointer with generic interface fails to compile

Martin1
New Contributor I
557 Views

ifort from the oneAPI toolkit (ifort -V: Intel(R) Fortran Intel(R) 64 Compiler Classic for applications running on Intel(R) 64, Version 2021.1 Build 20201112_000000 on Linux) does not compile the attached code, which should be valid. The reason seems to be that the compiler fails to resolve a call to a generic interface with an automatic pointer (argument has no pointer attribute but has a target attribute). Directly calling the routine compiles.

 

0 Kudos
4 Replies
FortranFan
Honored Contributor II
543 Views

Prima facie, this looks like a bug to me also.

Please submit this as support request at Intel OSC if you're able to.  https://supporttickets.intel.com/?lang=en-US

0 Kudos
Barbara_P_Intel
Moderator
523 Views

I filed another bug report for you, CMPLRIL0-33514. I'll post it here on the thread when it's fixed.



0 Kudos
Martin1
New Contributor I
513 Views
0 Kudos
Devorah_H_Intel
Moderator
339 Views

The fix will be available in the next oneAPI release. 

0 Kudos
Reply