Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.
27224 Discussions

Ifort/ifx ICE with allocate, source and NULL

Harald1
Novice
257 Views

The following code crashes ifort/ifx 2021.3:

program p
  real,     pointer :: x, z
  real,     pointer :: y => NULL()
  allocate (x, mold=null(y))   ! no crash
  allocate (z, source=null(y)) ! ICE
end

 

% ifort ifort-allocate.f90
ifort-allocate.f90(5): 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 ifort-allocate.f90 (code 1)

 Commenting out the line with source= avoids the ICE.

Thanks,

Harald

 

0 Kudos
1 Reply
Barbara_P_Intel
Moderator
197 Views

Thank you for reporting this issue. I filed a bug on your behalf, CMPLRLLVM-30151. I'll let you know when it's fixed.



Reply