[Bug c++/19403] [4.0 Regression] name lookup is broken with friends
lerdsuwa at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Jan 13 05:55:00 GMT 2005
------- 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
More information about the Gcc-bugs
mailing list