This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/23724] New: name lookup bug
- From: "sylvain dot pion at sophia dot inria dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Sep 2005 18:03:28 -0000
- Subject: [Bug c++/23724] New: name lookup bug
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The attached program fails to compile with the following error message :
------------
pipo.C: In function 'void f(T) [with T = N::A]':
pipo.C:24: instantiated from here
pipo.C:15: error: no matching function for call to 'f(N::A&, N::T1)'
------------
It works with g++ 4.0.1, 3.4.3 and 3.3.4, but fails with g++ 4.1 current CVS.
I observed that renaming the 2-arguments "f" function to "g" fixes the problem.
--
Summary: name lookup bug
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: sylvain dot pion at sophia dot inria dot fr
CC: gcc-bugs at gcc dot gnu dot org,sylvain dot pion at
sophia dot inria dot fr
GCC host triplet: i686-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23724