On 2016.02.10 at 10:30 -0500, Jason Merrill wrote: > After . or ->, when we see a name followed by < we look for a template name, > first in the scope of the object expression and then in the enclosing scope. > DR 141 clarified that when we look in the enclosing scope, we only consider > class templates, since there's no way a non-member function template could > be correct in that situation. > > When I fixed that, I found that we were failing to do the lookup in the > object scope in the case where that scope is the current instantiation, so I > needed to fix that as well. > > Tested x86_64-pc-linux-gnu, applying to trunk.
This commit causes: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69753 -- Markus