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

            Bug ID: 95107
           Summary: [10/11 Regression] ICE in hash_operand, at
                    fold-const.c:3768
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Changed between 20191110 and 20191117, with -fno-automatic at -O2+ :


$ cat z1.f90
program p
   type t
      real, pointer :: a => null()
   end type
   type t2
      type(t) :: b(1)
   end type
   type(t2) :: x
   associate (y => x%b)
   end associate
end


$ gfortran-9 -c z1.f90 -fno-automatic -O2
$
$ gfortran-11-20200510 -c z1.f90 -fno-automatic -O2
during IPA pass: icf
z1.f90:11:0:

   11 | end
      |
internal compiler error: in hash_operand, at fold-const.c:3768
0x8dfc2a operand_compare::hash_operand(tree_node const*, inchash::hash&,
unsigned int)
        ../../gcc/fold-const.c:3768
0x8e038c operand_compare::hash_operand(tree_node const*, inchash::hash&,
unsigned int)
        ../../gcc/fold-const.c:3858
0x8dffa2 operand_compare::hash_operand(tree_node const*, inchash::hash&,
unsigned int)
        ../../gcc/fold-const.c:3685
0x142c58f ipa_icf::sem_variable::init(ipa_icf_gimple::func_checker*)
        ../../gcc/ipa-icf.c:1909
0x14340ce ipa_icf::sem_variable::parse(varpool_node*, bitmap_obstack*,
ipa_icf_gimple::func_checker*)
        ../../gcc/ipa-icf.c:1889
0x143897d ipa_icf::sem_item_optimizer::parse_funcs_and_vars()
        ../../gcc/ipa-icf.c:2457
0xaf61ec execute_ipa_summary_passes(ipa_opt_pass_d*)
        ../../gcc/passes.c:2191
0x7fca29 ipa_passes
        ../../gcc/cgraphunit.c:2642
0x7fca29 symbol_table::compile()
        ../../gcc/cgraphunit.c:2752
0x7fe806 symbol_table::compile()
        ../../gcc/cgraphunit.c:3002
0x7fe806 symbol_table::finalize_compilation_unit()
        ../../gcc/cgraphunit.c:2999

Reply via email to