Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 613 Bytes

compiler-error-c2602.md

File metadata and controls

30 lines (26 loc) · 613 Bytes
description title ms.date f1_keywords helpviewer_keywords ms.assetid
Learn more about: Compiler Error C2602
Compiler Error C2602
11/04/2016
C2602
C2602
6c07a40e-537e-4954-b5c5-1e0e58fe1952

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