Compiler Error C2620

union 'union' : member 'identifier' has user-defined constructor or non-trivial default constructor

The specified union member was declared with a default constructor.

A union member is not allowed to have a default constructor.

The following is an example of this error:

class A
{
   A();      // A has a default constructor
};
union U
{
   A a;      // error
};