Compiler Error C2623

union 'union' : member 'union' has destructor

The specified union member was declared with a destructor, which is not allowed.

The following is an example of this error:

class A
{
   ~A();    // A has a destructor
};
union U
{
   A a;     // error
};