$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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.