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

procedure pointer and -g gives ICE

MR
Beginner
608 Views
Dear all,
the attached code gives an internal compiler error when compiled
with -g:

ifort -c -g ifortbug.f90
0_0

: catastrophic error: **Internal compiler error: internal abort** 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 ifortbug.f90 (code 3)

It compiles fine without the -g flag.
Regards,
Marco


ifort -V
Intel Fortran Intel 64 Compiler Professional for applications running on Intel 64, Version 11.0 Build 20081105 Package ID: l_cprof_p_11.0.074


module mod_test

implicit none
private

abstract interface
pure function i_coeff(x) result(mu)
real, intent(in) :: x
real :: mu
end function i_coeff
end interface

procedure(i_coeff), pointer :: coeff => null()

end module mod_test
0 Kudos
4 Replies
Ron_Green
Moderator
608 Views
I'll open a bug report.

DPD200117700

ron
0 Kudos
MR
Beginner
608 Views
I'll open a bug report.

ron
Ron,
thank you. One more comment: afterwards I have seen that if coeff
is made public and used in another module, this second module must
also be compiled without -g (well, I guess this makes sense, but I was
hoping avoiding -g in one single source file would be enough).

Regards,
Marco

0 Kudos
andrewmcleod
Beginner
608 Views
I'll open a bug report.

DPD200117700

ron

Is this fixed as I have just run into the same bug?

The system I am using has Ifort 11.0.081

Thanks,
Andrew
0 Kudos
Kevin_D_Intel
Employee
608 Views

Same bug. It was not fixed until the 11.0.083 update, however, only the final 11.0.084 update is available for download now.

$ ifort -V -c -g u63529.f90
Intel Fortran Intel 64 Compiler Professional for applications running on Intel 64, Version 11.0 Build 20090131 Package ID: l_cprof_p_11.0.081
Copyright (C) 1985-2009 Intel Corporation. All rights reserved.

Intel Fortran 11.0-1569
0_0

: catastrophic error: **Internal compiler error: internal abort** 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 u63529.f90 (code 3)


$ ifort -V -c -g u63529.f90
Intel Fortran Intel 64 Compiler Professional for applications running on Intel 64, Version 11.0 Build 20090318 Package ID: l_cprof_p_11.0.083
Copyright (C) 1985-2009 Intel Corporation. All rights reserved.

Intel Fortran 11.0-1578

0 Kudos
Reply