RAD Studio
ContentsIndex
PreviousUpNext
E2315: 'Member' is not a member of 'class', because the type is not yet defined

The member is being referenced while the class has not been fully defined yet. This can happen if you forward declare class X, declare a pointer variable to X, and reference a member through that pointer; for example:

class X;
X * oneX;
int test() { return oneX->i; }
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!