https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117475

--- Comment #16 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #4)
> (In reply to Andrew Pinski from comment #3)
> > testcase which works with clang but fails with GCC:
> 
> But that was fixed in GCC 13. Let me see if I can find the bug report ...

r13-1783:

c++: defaulted ctor with DMI in union [PR94823]

CWG2084 clarifies that a variant member with a non-trivial constructor does
not make the union's defaulted default constructor deleted if another
variant member has a default member initializer.

Reply via email to