Handle also nested deduced templates, even those wrapped in a LocInfoType.
Handle also nested deduced templates, even those wrapped in a LocInfoType.

Fixes cling/test/Lookup/template.C in C++17.

simonpf/root,olifre/root,karies/root,mhuwiler/rootauto,olifre/root,olifre/root,root-mirror/root,zzxuanyuan/root,olifre/root,olifre/root,zzxuanyuan/root,mhuwiler/rootauto,mhuwiler/rootauto,simonpf/root,root-mirror/root,olifre/root,karies/root,zzxuanyuan/root,olifre/root,olifre/root,karies/root,simonpf/root,karies/root,zzxuanyuan/root,root-mirror/root,simonpf/root,karies/root,root-mirror/root,zzxuanyuan/root,mhuwiler/rootauto,root-mirror/root,mhuwiler/rootauto,karies/root,mhuwiler/rootauto,root-mirror/root,karies/root,simonpf/root,zzxuanyuan/root,karies/root,root-mirror/root,simonpf/root,zzxuanyuan/root,mhuwiler/rootauto,zzxuanyuan/root,simonpf/root,mhuwiler/rootauto,root-mirror/root,zzxuanyuan/root,mhuwiler/rootauto,olifre/root,root-mirror/root,mhuwiler/rootauto,karies/root,root-mirror/root,simonpf/root,root-mirror/root,karies/root,olifre/root,olifre/root,karies/root,simonpf/root,simonpf/root,zzxuanyuan/root,simonpf/root,zzxuanyuan/root,mhuwiler/rootauto,zzxuanyuan/root