brevzin wrote:

Oh. Actually I didn't quite properly implement the destructor rule, since that 
changed since I originally implemented this. The new rule is that the default 
destructor for a union `X` [is deleted 
if](http://eel.is/c++draft/class.dtor#7.2)

* default constructing an `X` either fails, or is deleted, or is non trivial, or
* one of the members `M` of `X` has a default member initializer and `M`'s 
destructor is non-trivial.

I don't know how to do that yet, so plz don't merge (although I suspect there 
are other changes to be made).

https://github.com/llvm/llvm-project/pull/146815
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to