Expand Minimize
This topic has not yet been rated - Rate this topic

Compiler Error C2236

unexpected 'class-key' 'identifier''. Did you forget a ';'?

The identifier is already defined as a type and cannot be overridden by a user-defined type.

The following sample generates C2236:

// C2236.cpp
// compile with: /c
int class A {};  // C2236 "int class" is unexpected
int i;
class B {};
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.