https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107267
Patrick Palka <ppalka at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ppalka at gcc dot gnu.org --- Comment #11 from Patrick Palka <ppalka at gcc dot gnu.org> --- FWIW -ffold-simple-inline is sufficient to trigger the ICE, so this has something to do with cp_fold's folding of std::move. More reduced: $ cat 107267.C namespace std { template<typename _Tp> _Tp &&move(_Tp &&); } struct FindResult { FindResult(); int result; }; FindResult pop_ret = std::move(FindResult()); $ g++ -ffold-simple-inlines 107267.C 107267.C:10:44: internal compiler error: in cp_gimplify_init_expr, at cp/cp-gimplify.cc:253 10 | FindResult pop_ret = std::move(FindResult()); | ^