This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Problem with pointer to shadowed member with namespaces
- To: egcs at cygnus dot com
- Subject: Problem with pointer to shadowed member with namespaces
- From: Phil Blecker <tmwg at inxservices dot com>
- Date: Thu, 10 Sep 1998 07:24:19 -0700
- Organization: inX Services, Los Angeles, CA, USA
Given the following setup:
struct OID {
int i;
};
void g(OID *o);
namespace n1 {
struct N1 {
OID o;
};
}
namespace n2 {
struct N2 : n1::N1 {
OID o;
void f();
};
}
using namespace n2;
void
N2::f() {
g(&N1::o);
}
How does one properly refer to the o in n1::N1 in a member of n2::N2?