[Bug c++/34322] template fails to resolve names even when the name is in scope before the call point

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Dec 3 12:56:00 GMT 2007



------- Comment #2 from pinskia at gcc dot gnu dot org  2007-12-03 12:56 -------
GCC 4.1 (and above) is correct, the overloaded set of resolveName should be
either the direct namespace of which A resides (the global one) or the ones
which are defined before getName.  
This is the specific template namelookup rules for dependent arguments.

if you want getName to find the correct resolveName here, define resolveName in
the same namespace as A is defined (aka the global namespace). 


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34322



More information about the Gcc-bugs mailing list