Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
26750 Discussions

ifort 18.0.1 SIGSEGV with assumed-size array parameter initializer

Durak__Berke
Beginner
87 Views

Hi,

I get a "catastrophic error" with 18.0.1 on the following code when using array parameters with assumed size:

module crash 
  implicit none 
contains 
  subroutine foo 
    !real, parameter :: x(*)=[1] ! This works 
    !real, parameter :: x(1)=[1]/2.0 ! This works 
    real, parameter :: x(*)=[1]/2.0 ! This crashes 
  end subroutine foo 
end module crash 
% /opt/intel/bin/ifort ifortcrash.f90
ifortcrash.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 ifortcrash.f90 (code 1)

It's not a big deal as I can specify the actual size in which case it works.

 

0 Kudos
2 Replies
FortranFan
Honored Contributor II
87 Views

An internal compiler error is a compiler bug and you should report it at the Intel Online Service Center:

https://supporttickets.intel.com/?lang=en-US

Devorah_H_Intel
Moderator
87 Views

Thank you for reporting this. The case is escalated to engineering.

Reply