https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85544
--- Comment #1 from G. Steinmetz <gs...@t-online.de> --- Whereas this variant (plain b) works for all tested versions : $ cat z4.f90 program p integer, parameter :: na = -3, ne = 10 integer :: i, a(na:ne), b(na:ne), c(na:ne) a = [(i, i=na, ne)] b = 2**a c = [(2**i, i=na, ne)] print *, sum(abs(b-c)) end $ gfortran-8-20180422 z4.f90 -O2 -static-libgfortran $ a.out 0 $