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

Ifort/ifx ICE with allocate, source and NULL

Harald1
新分销商 II
1,495 次查看

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 项奖励
1 解答
Barbara_P_Intel
1,229 次查看

This ICE you reported is fixed in the latest Fortran compilers that are part of oneAPI 2022.3. Please give it a try!



在原帖中查看解决方案

0 项奖励
3 回复数
Barbara_P_Intel
1,435 次查看

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



0 项奖励
Barbara_P_Intel
1,230 次查看

This ICE you reported is fixed in the latest Fortran compilers that are part of oneAPI 2022.3. Please give it a try!



0 项奖励
Harald1
新分销商 II
1,223 次查看

I can confirm that the ICE is fixed.

Thanks,

Harald

 

0 项奖励
回复