Re: C++ PATCH for c++/10200 (DR 141, template name lookup after ->)

2016-02-10 Thread Markus Trippelsdorf
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 temp

C++ PATCH for c++/10200 (DR 141, template name lookup after ->)

2016-02-10 Thread Jason Merrill
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 temp