Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Compiler Error C2655

'identifier' : definition or redeclaration illegal in current scope

An identifier can be redeclared only at global scope.

The following sample generates C2655:

// C2655.cpp
class A {};
class B {
   static int i;

int B::i;  // OK

int main() {
   A B::i;  // C2655
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.