https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92788
Bug ID: 92788 Summary: [10 Regression] ICE in redirect_eh_edge_1, at tree-eh.c:2313 Product: gcc Version: 10.0 Status: UNCONFIRMED Keywords: ice-on-invalid-code, ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: asolokha at gmx dot com Target Milestone: --- Target: x86_64-pc-linux-gnu Created attachment 47413 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=47413&action=edit Testcase g++-10.0.0-alpha20191201 snapshot (r278886) ICEs when compiling the attached testcase, reduced from libstdc++-v3/testsuite/28_regex/algorithms/regex_match/ecma/char/53622.cc, w/ -march=k8 -O3 -fnon-call-exceptions -ftracer: % x86_64-pc-linux-gnu-g++-10.0.0-alpha20191201 -march=k8 -O3 -fnon-call-exceptions -ftracer -w -c s0uf5lnv.cc during GIMPLE pass: dom s0uf5lnv.cc: In copy constructor 'std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>&) [with _Tp = std::Trans_NS___cxx11_regex_traits::_RegexMask; _Alloc = new_allocator<std::Trans_NS___cxx11_regex_traits::_RegexMask>]': s0uf5lnv.cc:154:5: internal compiler error: in redirect_eh_edge_1, at tree-eh.c:2313 154 | vector(vector &__x) : _Base(0, _M_get_Tp_allocator()) { | ^~~~~~ 0x73dcdc redirect_eh_edge_1 /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191201/work/gcc-10-20191201/gcc/tree-eh.c:2313 0xf979ea redirect_eh_edge(edge_def*, basic_block_def*) /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191201/work/gcc-10-20191201/gcc/tree-eh.c:2378 0xaee9a0 redirect_edge_and_branch(edge_def*, basic_block_def*) /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191201/work/gcc-10-20191201/gcc/cfghooks.c:373 0x1125d54 ssa_fix_duplicate_block_edges(redirection_data*, ssa_local_info_t*) /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191201/work/gcc-10-20191201/gcc/tree-ssa-threadupdate.c:1017 0x11282c9 ssa_fixup_template_block(redirection_data**, ssa_local_info_t*) /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191201/work/gcc-10-20191201/gcc/tree-ssa-threadupdate.c:1246 0x11282c9 void hash_table<redirection_data, false, xcallocator>::traverse_noresize<ssa_local_info_t*, &(ssa_fixup_template_block(redirection_data**, ssa_local_info_t*))>(ssa_local_info_t*) /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191201/work/gcc-10-20191201/gcc/hash-table.h:1084 0x11282c9 void hash_table<redirection_data, false, xcallocator>::traverse<ssa_local_info_t*, &(ssa_fixup_template_block(redirection_data**, ssa_local_info_t*))>(ssa_local_info_t*) /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191201/work/gcc-10-20191201/gcc/hash-table.h:1105 0x11282c9 thread_block_1 /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191201/work/gcc-10-20191201/gcc/tree-ssa-threadupdate.c:1503 0x112990e thread_block /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191201/work/gcc-10-20191201/gcc/tree-ssa-threadupdate.c:1540 0x112990e thread_through_all_blocks(bool) /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191201/work/gcc-10-20191201/gcc/tree-ssa-threadupdate.c:2652 0x1049eb7 execute /var/tmp/portage/sys-devel/gcc-10.0.0_alpha20191201/work/gcc-10-20191201/gcc/tree-ssa-dom.c:775