https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107267
Bug ID: 107267 Summary: ice in cp_gimplify_init_expr, at cp/cp-gimplify.cc:253 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 53705 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53705&action=edit gzipped C++ source code The attached C++ code, with compiler flag -O1, does this with recent gcc: /home/dcb36/rpmbuild/BUILD/Vulkan-ValidationLayers-sdk-1.2.198.0/layers/vk_layer_utils.h:428:18: internal compil er error: in cp_gimplify_init_expr, at cp/cp-gimplify.cc:253 428 | auto ret = std::move(FindResult(true, itr->second)); | ^~~ 0x76bbbd cp_gimplify_init_expr(tree_node**) ../../trunk.git/gcc/cp/cp-gimplify.cc:253 0x76bbbd cp_gimplify_expr(tree_node**, gimple**, gimple**) ../../trunk.git/gcc/cp/cp-gimplify.cc:508