This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/6372: private inheritance makes class totally inaccessible, even as parameter
- From: nathan at gcc dot gnu dot org
- To: david at mandrakesoft dot com, gbeauchesne at mandrakesoft dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: 15 Sep 2002 12:16:49 -0000
- Subject: Re: c++/6372: private inheritance makes class totally inaccessible, even as parameter
- Reply-to: nathan at gcc dot gnu dot org, david at mandrakesoft dot com, gbeauchesne at mandrakesoft dot com, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: private inheritance makes class totally inaccessible, even as parameter
State-Changed-From-To: open->closed
State-Changed-By: nathan
State-Changed-When: Sun Sep 15 05:16:48 2002
State-Changed-Why:
not a bug. name lookup will find the implicit decl of A in
A's scope, which is inaccessible from C.
you should write
C(::A*){}
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6372