Quantcast
Channel: Intel® Fortran Compiler for Linux* and macOS*
Viewing all articles
Browse latest Browse all 2583

I killed off ifort 16.0.2 with this simple construct

$
0
0

Hi,

the following code will yield a catastrophic error when compiled using 16.0.2

module whimpfort
  private
  ! Make a circle

  integer, parameter :: N=128
  real, parameter :: pi=3.14
  real, parameter :: tooclose=0.5
  real, parameter :: R=tooclose
  real, parameter :: bigR=3*R
  integer :: ii
  complex, parameter :: circ_points(N) = [ (R*exp((0.,1.)*2.*pi*(ii-1)/real(N)),ii=1,N) ]
end module whimpfort

 

The line responsible for the crash is the one defining the `circ_points array' via the array constructor.

You guys should use my code for testing ;)

EDIT: I tried it with ifort 12--15 version and they all have problem with this. GNU compiler, gfortran ver 5, does what I want.


Viewing all articles
Browse latest Browse all 2583


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>