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