Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29284 Discussions

Automatic pointer with generic interface fails to compile

Martin1
New Contributor I
916 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 III
902 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
Employee
882 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
872 Views
0 Kudos
Devorah_H_Intel
Moderator
698 Views

The fix will be available in the next oneAPI release. 

0 Kudos
Reply