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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2010-09-24 
21:58:44 UTC ---
> access of locals 

Huh?  That is not what I am saying.  What I am saying is that A names (inside
C) the injected name in B which is private.

The reason why:
template <class T, class U> class D : private T
{
  D(int i) : T(i) { U u; } 
};  

template class D<A,A>; // local A gets global access rights
--- CUT ---

Works is because the names you are using are T and U and not A.

-- 
Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Reply via email to