Boost logo

Boost :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2004-05-25 11:46:09


> Hi John, I think I have reduced the problem to an actual bug in EDG:
>
> class A
> {
> protected:
> int x;
> };
>
> class AA:public A
> {
> public:
> using A::x;
> };
>
> class TT;
>
> class T
> {
> public:
> class foo:public A // <<-- foo is the culprit!
> {
> friend class TT;
> };
> protected:
> AA aa;
> };
>
> class TT:public T
> {
> public:
> void foo(){aa.x=0;}
> };
>
> int main()
> {
> }

How presence of unrelated class foo affects access in class AA?
Is it important that method is called foo also?

Gennadiy.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk