'class::Identifier' 不是 'class' 基類的成員
備註
Identifier 無法存取,因為它不是繼承自任何基類的成員。
範例
下列範例會產生 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
};