Compiler Error C2378

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Compiler Error C2378.

identifier' : redefinition; symbol cannot be overloaded with a typedef

The identifier was redefined as a typedef.

The following sample generates C2378:

// C2378.cpp  
// compile with: /c  
int i;  
typedef int i;   // C2378  
typedef int b;   // OK  

Show: