Compiler Error C2602

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

For the latest documentation on Visual Studio 2017, see Compiler Error C2602 on docs.microsoft.com. 'class::Identifier' is not a member of a base class of 'class'

Identifier cannot be accessed because it is not a member inherited from any base class.

The following sample generates C2602:

// C2602.cpp  
// compile with: /c  
struct X {  
   int x;  
};  
struct A {  
   int a;  
};  
struct B : public A {  
   X::x;   // C2602 B is not derived from X  
   A::a;   // OK  
};  

Show: