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

            Bug ID: 95690
           Summary: [11 Regression] ICE in
                    set_mem_attributes_minus_bitpos, at emit-rtl.c:2092
           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 20200531 and 20200607 :


$ cat z1.f90
module m
contains
   subroutine s
      print *, (erfc)
   end
   function erfc()
   end
end


$ gfortran-11-20200531 -c z1.f90
z1.f90:4:0:

    4 |       print *, (erfc)
      |
Error: initializer for floating value is not a floating constant


$ gfortran-11-20200614 -c z1.f90
during RTL pass: expand
z1.f90:4:0:

    4 |       print *, (erfc)
      |
internal compiler error: in set_mem_attributes_minus_bitpos, at emit-rtl.c:2092
0x89d5d0 set_mem_attributes_minus_bitpos(rtx_def*, tree_node*, int,
poly_int<1u, long>)
        ../../gcc/emit-rtl.c:2090
0xe6d8c4 build_constant_desc
        ../../gcc/varasm.c:3402
0xe6d8c4 add_constant_to_table
        ../../gcc/varasm.c:3454
0xe6aa2c output_constant_def(tree_node*, int)
        ../../gcc/varasm.c:3478
0x8d0034 expand_expr_constant
        ../../gcc/expr.c:8079
0x8d0034 expand_expr_addr_expr_1
        ../../gcc/expr.c:8132
0x8c5cbd expand_expr_addr_expr
        ../../gcc/expr.c:8299
0x8c5cbd expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../gcc/expr.c:11474
0x7bdd80 expand_normal
        ../../gcc/expr.h:288
0x7bdd80 precompute_register_parameters
        ../../gcc/calls.c:982
0x7bdd80 expand_call(tree_node*, rtx_def*, int)
        ../../gcc/calls.c:4337
0x8c662e expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ../../gcc/expr.c:11246
0x7cba7a expand_expr
        ../../gcc/expr.h:282
0x7cba7a expand_call_stmt
        ../../gcc/cfgexpand.c:2703
0x7cba7a expand_gimple_stmt_1
        ../../gcc/cfgexpand.c:3682
0x7cba7a expand_gimple_stmt
        ../../gcc/cfgexpand.c:3847
0x7d0527 expand_gimple_basic_block
        ../../gcc/cfgexpand.c:5888
0x7d2b9e execute
        ../../gcc/cfgexpand.c:6572

Reply via email to