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

ifort internal abort

vzecca
Beginner
368 Views

The compilation of the following code produces an ifort 19.1.2.254 internal abort, no options required

!ifort Internal abort
print *, f()
contains
function f()
integer :: f(iargc()*10)
end
end

Labels (1)
0 Kudos
3 Replies
Steve_Lionel
Black Belt Retired Employee
351 Views

Indeed it does, a compiler bug for sure. However, the code is also not valid Fortran as an arbitrary external function is not allowed in a specification expression.

vzecca
Beginner
337 Views

Hi, Steve, I remember we interacted years ago on the ifort beta program.

Yes the program is illegal, but ifort should give a meaningful error message,

and never crash.

Steve_Lionel
Black Belt Retired Employee
321 Views

I agree completely - but it wasn't clear to me that you understood the code was not valid.

Reply