Community
cancel
Showing results for 
Search instead for 
Did you mean: 
vzecca
Beginner
267 Views

ifort internal abort

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
250 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
236 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
220 Views

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

Reply