This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19403] [4.0 Regression] name lookup is broken with friends
- From: "Woebbeking at web dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Jan 2005 09:56:08 -0000
- Subject: [Bug c++/19403] [4.0 Regression] name lookup is broken with friends
- References: <20050112180427.19403.Woebbeking@web.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From Woebbeking at web dot de 2005-01-14 09:56 -------
Subject: Re: [4.0 Regression] name lookup is broken with friends
On Thursday 13 January 2005 15:52, lerdsuwa at gcc dot gnu dot org wrote:
>
> > So B's ctor uses the global A without the friend declaration and with the
> > friend declaration the local injected A? Sometimes the holy standard
> > confuses me a bit.
>
> No. With or without friend declaration, the B's ctor should always pick
> the global A. This is one weird rule in C++ standard.
Now I'm even more confused than before. Who is right, Gaby or lerdsuwa?
André
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19403