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

            Bug ID: 72743
           Summary: ICE in get_constraint_for_ssa_var, at
                    tree-ssa-structalias.c:2958
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gerhard.steinmetz.fort...@t-online.de
  Target Milestone: ---

Not with -O1, but with optimization level -Os, -O2 or higher.
Seen with 6 an 7.


$ cat z1.f90
program p
   integer, parameter :: n = 8
   integer :: i, z(n)
   z = [(i, i=1,n)]
   print *, z
end
subroutine s
   integer, parameter :: n = 8
   integer :: i, z(n)
   z = [(i, i=1,n)]
   print *, z
end


$ gfortran-7-20160724 -O2 -fopenacc z1.f90
z1.f90:12:0:

 end

internal compiler error: in get_constraint_for_ssa_var, at
tree-ssa-structalias.c:2958
0xde8325 get_constraint_for_ssa_var
        ../../gcc/tree-ssa-structalias.c:2955
0xde8456 get_constraint_for_1
        ../../gcc/tree-ssa-structalias.c:3544
0xde8d72 get_constraint_for_address_of
        ../../gcc/tree-ssa-structalias.c:3367
0xde86aa get_constraint_for_1
        ../../gcc/tree-ssa-structalias.c:3435
0xde93ed get_constraint_for_ptr_offset
        ../../gcc/tree-ssa-structalias.c:3099
0xde84f6 get_constraint_for_1
        ../../gcc/tree-ssa-structalias.c:3450
0xdeb4c9 do_structure_copy
        ../../gcc/tree-ssa-structalias.c:3627
0xdeb4c9 find_func_aliases
        ../../gcc/tree-ssa-structalias.c:4771
0xdf2fb6 ipa_pta_execute
        ../../gcc/tree-ssa-structalias.c:7808

Reply via email to