This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53573] template type dependant name resolution broken
- From: "keean at fry-it dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 04 Jun 2012 13:33:38 +0000
- Subject: [Bug c++/53573] template type dependant name resolution broken
- Auto-submitted: auto-generated
- References: <bug-53573-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53573
--- Comment #2 from Keean Schupke <keean@fry-it.com> 2012-06-04 13:33:38 UTC ---
The function called in the template definition is clearly dependent on the
template parameter 'T' and therefore itsname should be resolved at the point of
instantiation where 'g' is clearly defined and in scope (and is not local). The
error message says: "no declarations were found by argument-dependent lookup at
the point of instantiation" when 'g' should be found. See Technicalities C.13.8