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: "lerdsuwa at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jan 2005 05:55:11 -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 lerdsuwa at gcc dot gnu dot org 2005-01-13 05:55 -------
Both ICC and Comeau are right.
The declaration
friend struct A;
refers to boo::A, while the declaration
B(const A&) {};
refers to ::A. So the code should compile.
The patch for PR1016, scheduled for 4.1, should fix it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19403