https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66193

            Bug ID: 66193
           Summary: ICE for initialisation of some non-zero-sized arrays
           Product: gcc
           Version: 5.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fort...@t-online.de
  Target Milestone: ---

This initialisation of an array (NOT zero sized, NOT a parameter)
   program p
      real :: z(2)
      z = 1 + [real :: 1, 2]
   end

yields (with gfortran 5.1.1 on SUSE Linux 13.2, 64 bit)
f951: internal compiler error: Segmentation fault


This variation ...
   program p
      real :: z(2) = 1 + [real :: 1, 2]
   end

or with an additional parameter attribute ...
   program p
      real, parameter :: z(2) = 1 + [real :: 1, 2]
   end

yields the same error message as above.
Kind regards.

Reply via email to