[clang] [Clang] Implement CWG2598: Union of non-literal types (PR #78195)

via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 18 06:12:23 PST 2024


groundswellaudio wrote:

By looking at your tests on anonymous unions, I'd say that indirect fields are handled correctly (perhaps they're not included in the fields range?, otherwise the union-like class would not be considered literal) and that rather the implicitly generated special member functions of the anonymous union are the problems (and it's unclear to me why these would be needed at all, but perhaps it's simpler to generate them that to make a special case anonymous unions). 

https://github.com/llvm/llvm-project/pull/78195


More information about the cfe-commits mailing list