This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/34322] template fails to resolve names even when the name is in scope before the call point
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Dec 2007 12:56:34 -0000
- Subject: [Bug c++/34322] template fails to resolve names even when the name is in scope before the call point
- References: <bug-34322-15466@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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