This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/19403] [4.0 Regression] name lookup is broken with friends


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]