共用方式為


編譯器錯誤 C2602

'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
};