This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/19403] New: name lookup is broken
- From: "Woebbeking at web dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Jan 2005 18:04:28 -0000
- Subject: [Bug c++/19403] New: name lookup is broken
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hi,
the following code doesn't compile:
struct A {};
namespace Boo
{
struct B
{
friend struct A;
B(const A&) {};
};
}
int main()
{
A a;
Boo::B b(a);
return 0;
}
It compiles with g++ < 4.0.
--
Summary: name lookup is broken
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Woebbeking at web dot de
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19403