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

Automatic pointer with generic interface fails to compile

Martin1
New Contributor I
365 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
351 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

Barbara_P_Intel
Moderator
331 Views

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



Martin1
New Contributor I
321 Views
Devorah_H_Intel
Moderator
147 Views

The fix will be available in the next oneAPI release. 

Reply