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

            Bug ID: 67615
           Summary: ICE on using arithmetic if with array instead of
                    scalar
           Product: gcc
           Version: 5.2.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: ---

An arithmetic if with an array instead of a numeric scalar :

   program p
      integer :: z(1) = [1]
      if ( z ) 1, 2, 3
    1 stop 1
    2 stop 2
    3 stop 3
   end

or this variation :

   program p
      integer :: z(2) = [1, 2]
      if ( z ) 1, 2, 3
    1 stop 1
    2 stop 2
    3 stop 3
   end


yields :
internal compiler error: Segmentation fault

Reply via email to