https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109247
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Slightly more reduced: template <typename T> struct optional { template <typename U> explicit optional (U); template <typename U = T> void operator= (U); }; struct T { int a; }; struct S { void foo (int y) { x = { y }; } optional<T> x; };