CWG 997 added the following wording at the end of [basic.lookup.argdep]p2
[...] Additionally, if the aforementioned set of overloaded functions is named with a template-id, its associated classes and namespaces are those of its type template-arguments and its template template-arguments.
This resolve CWG 1015 and part of CWG 997 (I will mark it as done when the rest of it is implemented).