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

            Bug ID: 102683
           Summary: [12 Regression] ICE in
                    set_min_and_max_values_for_integral_type, at
                    stor-layout.c:2851
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: qing.zhao at oracle dot com
  Target Milestone: ---
              Host: x86_64-linux-gnu
            Target: riscv64-unknown-linux-gnu

The following fails:

$ riscv64-linux-gnu-gcc
/home/marxin/Programming/gcc/gcc/testsuite/g++.dg/other/complex1.C -Og
-ftrivial-auto-var-init=pattern
during RTL pass: expand
/home/marxin/Programming/gcc/gcc/testsuite/g++.dg/other/complex1.C: In function
‘void foo()’:
/home/marxin/Programming/gcc/gcc/testsuite/g++.dg/other/complex1.C:19:5:
internal compiler error: in set_min_and_max_values_for_integral_type, at
stor-layout.c:2851
   19 |   C y = (n==1) ? x : (C){3+3i};
      |     ^
0x6185b6 set_min_and_max_values_for_integral_type(tree_node*, int, signop)
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-riscv64/build/gcc/stor-layout.c:2851
0xcb2e2b fixup_unsigned_type(tree_node*)
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-riscv64/build/gcc/stor-layout.c:2885
0xf32cd8 build_nonstandard_integer_type(unsigned long, int)
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-riscv64/build/gcc/tree.c:6976
0xa822c9 expand_DEFERRED_INIT
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-riscv64/build/gcc/internal-fn.c:3058
0x8b6bc7 expand_call_stmt
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-riscv64/build/gcc/cfgexpand.c:2749
0x8b6bc7 expand_gimple_stmt_1
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-riscv64/build/gcc/cfgexpand.c:3876
0x8b6bc7 expand_gimple_stmt
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-riscv64/build/gcc/cfgexpand.c:4040
0x8bb3d2 expand_gimple_basic_block
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-riscv64/build/gcc/cfgexpand.c:6082
0x8bd216 execute
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-riscv64/build/gcc/cfgexpand.c:6808
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to