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 on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29295 Discussions

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

Harald1
New Contributor II
716 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
652 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
481 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