Compiler Error C2011

'identifier' : 'type' type redefinition

The identifier was already defined as type. You may also get C2011 if you import a type library more than once into the same file.

The following sample generates C2011:

// C2011.cpp
// compile with: /c
struct S;
union S;   // C2011
union S2;   // OK