Compiler Error C2467

illegal declaration of anonymous 'user-defined-type'

A nested user defined type was declared. This is an error when the ANSI compatibility option (/Za) has been enabled.

The following is an example of this error:

int main()
{
   struct X
   {
      union { int i; };  // error, nested declaration
   };
   return 0;
}