This bug seems to be marked as "closed" under the Id 2922. However, the attached testcase can be successfully compiled by gcc 3.3.5 and 3.4,5, while the brand new gcc 4.1.0 rejects it. If one puts everything in the global namespace, it compiles again.
I fear, this issue is still far from being closed. -- Summary: wrong name lookup in a class template in presence of namespaces Product: gcc Version: 4.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: gawrilow at math dot tu-berlin dot de GCC build triplet: i686-pc-linux-gnu GCC host triplet: i686-pc-linux-gnu GCC target triplet: i686-pc-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26536