Compiler Error C2602
'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
};
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for