Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
26739 Discussions

Automatic pointer with generic interface fails to compile

Martin1
New Contributor I
173 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
3 Replies
FortranFan
Honored Contributor II
159 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
139 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
129 Views
Reply