http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19377

fabien at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu.org

--- Comment #4 from fabien at gcc dot gnu.org 2011-11-27 21:13:49 UTC ---
(In reply to comment #0)
> Given this code:
> 
> class A {
> protected:
>     int i;
> };
> 
> class B : public A {
> private:
>     using A::i;
> };
> 
> class C : public B {
> public:
>     void f() { A::i = 0; }
> };

As 'i' is referenced through 'this' and is qualified with a nested name
specifier (A), I think we should perform the access lookup directly in A.

The problem seems to be that we do not have the information that 'i' is
referenced through 'this' when checking the access in accessible_p, unless I'm
missing something.

Any idea where to find this information ?

Reply via email to