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.
29282 Discussions

ICE with procedure ponter and procedure interface

MR
Beginner
673 Views
Hi, I noticed that the attached code gives an intrnal compiler error when using ifort 13.0 (the same code works with a previous version). More precisely: ifort -c ice.f90 ice.f90: catastrophic error: **Internal compiler error: segmentation violation signal raised** Please report this error along with the circumstances in which it occurred in a Software Problem Report. Note: File and line given may not be explicit cause of this error. compilation aborted for ice.f90 (code 1) ifort -V Intel(R) Fortran Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 13.0 Build 20121010 (Version 12.1 Build 20120212 works fine) Marco module ice implicit none public :: i_f, f_p private integer, protected :: n abstract interface pure function i_f(x) result(y) import :: n implicit none real, intent(in) :: x real :: y(n) end function i_f end interface procedure(i_f), pointer :: f_p => null() end module ice
0 Kudos
3 Replies
Steven_L_Intel1
Employee
673 Views

Thanks - I have escalated this as issue DPD200240502 and will let you know of any progress.

0 Kudos
MR
Beginner
673 Views

Steve, OK, thank you.

Marco

0 Kudos
Steven_L_Intel1
Employee
673 Views

The internal compiler error is fixed for a release later this year. A workaround would be to remove f_p from the PUBLIC statement and then give f_p the PUBLIC attribute explicitly, but the Update 2 compiler doesn't like that. Update 3 should allow that workaround.

0 Kudos
Reply