https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103033
Bug ID: 103033 Summary: [12 regression] c-c++-common/auto-init-4.c ICEs starting with r12-4829 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: seurer at gcc dot gnu.org Target Milestone: --- g:429e3b7d8bf6609ddf7c7b1e49244997e9ac76b8, r12-4829 make -k check-gcc RUNTESTFLAGS="dg.exp=c-c++-common/auto-init-4.c" FAIL: c-c++-common/auto-init-4.c -Wc++-compat (internal compiler error) FAIL: c-c++-common/auto-init-4.c -Wc++-compat (test for excess errors) FAIL: c-c++-common/auto-init-4.c -std=gnu++98 (internal compiler error) FAIL: c-c++-common/auto-init-4.c -std=gnu++98 (test for excess errors) FAIL: c-c++-common/auto-init-4.c -std=gnu++14 (internal compiler error) FAIL: c-c++-common/auto-init-4.c -std=gnu++14 (test for excess errors) FAIL: c-c++-common/auto-init-4.c -std=gnu++17 (internal compiler error) FAIL: c-c++-common/auto-init-4.c -std=gnu++17 (test for excess errors) FAIL: c-c++-common/auto-init-4.c -std=gnu++2a (internal compiler error) FAIL: c-c++-common/auto-init-4.c -std=gnu++2a (test for excess errors) spawn -ignore SIGHUP /home/seurer/gcc/git/build/gcc-test/gcc/xgcc -B/home/seurer/gcc/git/build/gcc-test/gcc/ /home/seurer/gcc/git/gcc-test/gcc/testsuite/c-c++-common/auto-init-4.c -fdiagnostics-plain-output -Wc++-compat -ftrivial-auto-var-init=pattern -fdump-tree-gimple -S -o auto-init-4.s during RTL pass: expand /home/seurer/gcc/git/gcc-test/gcc/testsuite/c-c++-common/auto-init-4.c: In function 'foo': /home/seurer/gcc/git/gcc-test/gcc/testsuite/c-c++-common/auto-init-4.c:11:15: internal compiler error: Segmentation fault 0x10bd8533 crash_signal /home/seurer/gcc/git/gcc-test/gcc/toplev.c:322 0x10687390 location_wrapper_p(tree_node const*) /home/seurer/gcc/git/gcc-test/gcc/tree.h:4136 0x10687390 tree_strip_any_location_wrapper(tree_node*) /home/seurer/gcc/git/gcc-test/gcc/tree.h:4148 0x10687390 operand_compare::operand_equal_p(tree_node const*, tree_node const*, unsigned int) /home/seurer/gcc/git/gcc-test/gcc/fold-const.c:2969 0x10682e33 operand_compare::verify_hash_value(tree_node const*, tree_node const*, unsigned int, bool*) /home/seurer/gcc/git/gcc-test/gcc/fold-const.c:3956 0x106875ff operand_compare::verify_hash_value(tree_node const*, tree_node const*, unsigned int, bool*) /home/seurer/gcc/git/gcc-test/gcc/tree.h:4149 0x106875ff operand_compare::operand_equal_p(tree_node const*, tree_node const*, unsigned int) /home/seurer/gcc/git/gcc-test/gcc/fold-const.c:2965 0x106638cf expand_assignment(tree_node*, tree_node*, bool) /home/seurer/gcc/git/gcc-test/gcc/expr.c:5366 0x10809b4f expand_DEFERRED_INIT /home/seurer/gcc/git/gcc-test/gcc/internal-fn.c:3101 0x10810c4b expand_internal_call(internal_fn, gcall*) /home/seurer/gcc/git/gcc-test/gcc/internal-fn.c:4220 0x10810c4b expand_internal_call(gcall*) /home/seurer/gcc/git/gcc-test/gcc/internal-fn.c:4228 0x1048c2a7 expand_call_stmt /home/seurer/gcc/git/gcc-test/gcc/cfgexpand.c:2749 0x1048c2a7 expand_gimple_stmt_1 /home/seurer/gcc/git/gcc-test/gcc/cfgexpand.c:3876 0x1048c2a7 expand_gimple_stmt /home/seurer/gcc/git/gcc-test/gcc/cfgexpand.c:4040 0x10494dab expand_gimple_basic_block /home/seurer/gcc/git/gcc-test/gcc/cfgexpand.c:6085 0x10497d47 execute /home/seurer/gcc/git/gcc-test/gcc/cfgexpand.c:6811 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. compiler exited with status 1 commit 429e3b7d8bf6609ddf7c7b1e49244997e9ac76b8 (HEAD, refs/bisect/bad) Author: Oracle Public Cloud User <o...@qinzhao-aarch64-ol8.allregionaliads.osdevelopmeniad.oraclevcn.com> Date: Mon Nov 1 15:14:26 2021 +0000 PR 102281 (-ftrivial-auto-var-init=zero causes ice)