https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118169
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #15 from Jakub Jelinek <jakub at gcc dot gnu.org> --- struct A { constexpr A (int *x) : s(x) {} ~A (); int *s; }; struct B { A t; int u = 0; }; void foo (B &&); void bar (int &x) { foo ({ &x }); } Needs -O or higher.