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
663 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
Honored Contributor III
646 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.

0 Kudos
vzecca
Beginner
632 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.

0 Kudos
Steve_Lionel
Honored Contributor III
616 Views

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

0 Kudos
Reply