[modules] When picking one of two template declarations as a lookup result,
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 11 Sep 2015 22:39:35 +0000 (22:39 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 11 Sep 2015 22:39:35 +0000 (22:39 +0000)
commit535ff8035458d859e3d309067a9ce45623daf269
tree61e5cada703333dac07c344e6695b2312f59ff3c
parent2681e7dcd0ce403b998e1166a0188bbffd34f077
[modules] When picking one of two template declarations as a lookup result,
it's not sufficient to prefer the declaration with more default arguments, or
the one that's visible; they might both be visible, but one of them might have
a visible default argument where the other has a hidden default argument.

llvm-svn: 247486
clang/lib/Sema/SemaLookup.cpp
clang/test/Modules/Inputs/template-default-args/a.h
clang/test/Modules/Inputs/template-default-args/module.modulemap
clang/test/Modules/template-default-args.cpp