https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117439
Bug ID: 117439 Summary: [11/12/13/14/15] ICE in encode_tree_to_bitpos Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: lixinyang411 at gmail dot com Target Milestone: --- Created attachment 59534 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59534&action=edit testcase.cc reproducible with -O2 or above. backtrace: #0 (anonymous namespace)::encode_tree_to_bitpos (expr=expr@entry=0x7ffff6e565e8, ptr=0x7fffe6dff010 "", bitlen=<optimized out>, bitpos=bitpos@entry=64, total_bytes=<optimized out>) at ../../gcc-13.3.0/gcc/gimple-ssa-store-merging.cc:1943 #1 0x0000000001b73d15 in (anonymous namespace)::merged_store_group::apply_stores ( this=this@entry=0x299d730) at ../../gcc-13.3.0/gcc/gimple-ssa-store-merging.cc:2339 #2 0x0000000001b7cc28 in (anonymous namespace)::imm_store_chain_info::coalesce_immediate_stores ( this=<optimized out>) at ../../gcc-13.3.0/gcc/gimple-ssa-store-merging.cc:3359 #3 (anonymous namespace)::imm_store_chain_info::terminate_and_process_chain (this=0x2ab0310) at ../../gcc-13.3.0/gcc/gimple-ssa-store-merging.cc:4835 #4 (anonymous namespace)::pass_store_merging::terminate_and_process_chain ( this=this@entry=0x2999d50, chain_info=0x2ab0310) at ../../gcc-13.3.0/gcc/gimple-ssa-store-merging.cc:2551 #5 0x0000000001b7e5a8 in (anonymous namespace)::pass_store_merging::terminate_and_process_all_chains (this=<optimized out>) at ../../gcc-13.3.0/gcc/gimple-ssa-store-merging.cc:2484 #6 (anonymous namespace)::pass_store_merging::execute (this=0x2999d50, fun=0x7ffff6e3a398) at ../../gcc-13.3.0/gcc/gimple-ssa-store-merging.cc:5488 #7 0x0000000000d814c3 in execute_one_pass (pass=pass@entry=0x2999d50) at ../../gcc-13.3.0/gcc/passes.cc:2651 #8 0x0000000000d81d70 in execute_pass_list_1 (pass=0x2999d50) at ../../gcc-13.3.0/gcc/passes.cc:2760 #9 0x0000000000d81d82 in execute_pass_list_1 (pass=0x2996ff0) at ../../gcc-13.3.0/gcc/passes.cc:2761 #10 0x0000000000d81db9 in execute_pass_list (fn=0x7ffff6e3a398, pass=<optimized out>) at ../../gcc-13.3.0/gcc/passes.cc:2771 #11 0x0000000000a20b40 in cgraph_node::expand (this=0x7ffff6e31bb0) at ../../gcc-13.3.0/gcc/context.h:48 #12 cgraph_node::expand (this=0x7ffff6e31bb0) at ../../gcc-13.3.0/gcc/cgraphunit.cc:1794 #13 0x0000000000a2219b in expand_all_functions () at ../../gcc-13.3.0/gcc/cgraphunit.cc:2024 #14 symbol_table::compile (this=this@entry=0x7ffff7006000) at ../../gcc-13.3.0/gcc/cgraphunit.cc:2400 #15 0x0000000000a24708 in symbol_table::compile (this=0x7ffff7006000) at ../../gcc-13.3.0/gcc/cgraphunit.cc:2311 #16 symbol_table::finalize_compilation_unit (this=0x7ffff7006000) at ../../gcc-13.3.0/gcc/cgraphunit.cc:2585 #17 0x0000000000e58be8 in compile_file () at ../../gcc-13.3.0/gcc/toplev.cc:471 #18 0x000000000070a206 in do_compile (no_backend=false) at ../../gcc-13.3.0/gcc/toplev.cc:2125 #19 toplev::main (this=this@entry=0x7fffffff4646, argc=<optimized out>, argc@entry=16, argv=<optimized out>, argv@entry=0x7fffffff4778) at ../../gcc-13.3.0/gcc/toplev.cc:2277 #20 0x000000000070bebb in main (argc=16, argv=0x7fffffff4778) at ../../gcc-13.3.0/gcc/main.cc:39