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

Missing compiler check for procedure pointer reference to an elemental procedure

FortranFan
Honored Contributor III
501 Views

It appears current Fortran standard (c.f. 2008 C1218) doesn't allow the code shown below, but Intel Fortran compiler raises no errors or warnings:

module m

   implicit none

   abstract interface
      elemental subroutine Ifoo()
      end subroutine Ifoo
   end interface

   procedure(Ifoo), pointer :: foo_ptr

end module m

 

0 Kudos
3 Replies
Steven_L_Intel1
Employee
501 Views

We already know about this one - issue ID is DPD200378972. Thanks for making sure, though.

0 Kudos
FortranFan
Honored Contributor III
501 Views

Thanks for the feedback, Steve.  Site search on DPD200378972 comes up empty, unfortunately.

0 Kudos
Steven_L_Intel1
Employee
501 Views

That's because I saw it in comp.lang.fortran and created a bug report from that. It didn't start here.

0 Kudos
Reply