Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs have moved to the Altera Community. Existing Intel Community members can sign in with their current credentials.
29306 Discussions

ICE on initialization of scalar pointer to target in DATA statement with -stand

Harald1
New Contributor II
724 Views

Hello,

the following (IMHO) valid code ICEs with current ifort/ifx:

program test
  implicit none
  integer, target  :: t = 42
  integer, pointer :: p, q
  data p /NULL()/ ! OK
  data q /t/      ! ICE with -stand
! q => t          ! this is OK
  print *, t, q
end

I get:

% ifort ifort-data.f90 && ./a.out 
          42          42
% ifort ifort-data.f90 -stand
ifort-data.f90: catastrophic error: **Internal compiler error: segmentation violation signal raised** 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-data.f90 (code 1)

 I think this is mostly self-explaining...

 

2 Replies
Barbara_P_Intel
Employee
660 Views

I filed a bug report on this ICE, CMPLRLLVM-50040. I'll post when there's a fix.

@Harald1, you are giving -stand a workout!


0 Kudos
Barbara_P_Intel
Employee
489 Views

This ICE is fixed in the compilers that were released in late 2023. Sorry for the delay in letting you know.


0 Kudos
Reply