https://bugs.llvm.org/show_bug.cgi?id=48453
Richard Smith <richard-l...@metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
--- Comment #1 from Richard Smith <richard-l...@metafoo.co.uk> ---
Per http://eel.is/c++draft/class.union#general-6, an assignment can only change
the active union member if the union member has a trivial default constructor.
`Un::NestedUn` has a non-trivial default constructor, so the union member
`Un::f2` cannot be made active by simply assigning to it or one of its
subobjects.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs