https://issues.dlang.org/show_bug.cgi?id=16104

Walter Bright <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Walter Bright <[email protected]> ---
In C++:

  struct S {  ~S(); };
  union U  { S s; };

g++ -c foo.cpp
foo.cpp:2:14: error: member 'S U::s' with destructor not allowed in union
 union U  { S s; };
              ^
foo.cpp:2:14: note: unrestricted unions only available with -std=c++11 or
-std=gnu++11


What was C++11's rationale?

--

Reply via email to