https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103494
Bug ID: 103494 Summary: ice in vect_get_vec_defs_for_operand, at tree-vect-stmts.c:1476 Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Created attachment 51906 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51906&action=edit gzipped C++ source code For the attached C++ code, with compiler flag -O3, does this: /home/dcb35/rpmbuild/BUILD/libvdpau-va-gl-0.4.2/src/api-output-surface.cc:448:1: internal compiler error: in vect_get_vec_defs_for_operand, at tree-vect-stmts.c:1476 448 | PutBitsIndexedImpl(VdpOutputSurface surface_id, VdpIndexedFormat source_indexed_format, | ^~~~~~~~~~~~~~~~~~ 0x1ff5137 vect_get_vec_defs_for_operand(vec_info*, _stmt_vec_info*, unsigned int, tree_node*, vec<tree_node*, va_heap, vl_ptr>*, tree_node*) ../../trunk.git/gcc/tree-vect-stmts.c:1476 0x2014db1 vect_get_gather_scatter_ops(_loop_vec_info*, loop*, _stmt_vec_info*, _slp_tree*, unsigned int, gather_scatter_info*, tree_node**, vec<tree_node*, va_heap, vl_ptr>*) ../../trunk.git/gcc/tree-vect-stmts.c:2981 The bug first seems to occur sometime between git hash 5e5f880d0452ef2c and 8af3f53d325fe4a6, a distance of 43 commits.