Jonathan Wakely <redi at gcc dot> changed:

           What    |Removed                     |Added
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |redi at gcc dot
         Resolution|                            |DUPLICATE

--- Comment #2 from Jonathan Wakely <redi at gcc dot> 2010-09-24 
09:35:15 UTC ---
Your analysis is incorrect, A::B<T> is not accessible because it's a template. 
The bug is that template functions do not obey access control.

If you make print_private_class a template then it can access A::C 

template<unsigned T>
void print_private_class(const A::C &ac)

int main(int, char**)
    A a;


    return 0;

This is a dup of PR c++/41437

*** This bug has been marked as a duplicate of bug 41437 ***

Configure bugmail:
------- You are receiving this mail because: -------
You are on the CC list for the bug.

Reply via email to