diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-09-11 22:39:35 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2015-09-11 22:39:35 +0000 |
commit | 535ff8035458d859e3d309067a9ce45623daf269 (patch) | |
tree | 61e5cada703333dac07c344e6695b2312f59ff3c /clang/test/Modules/Inputs/template-default-args/a.h | |
parent | 2681e7dcd0ce403b998e1166a0188bbffd34f077 (diff) | |
download | bcm5719-llvm-535ff8035458d859e3d309067a9ce45623daf269.tar.gz bcm5719-llvm-535ff8035458d859e3d309067a9ce45623daf269.zip |
[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
Diffstat (limited to 'clang/test/Modules/Inputs/template-default-args/a.h')
-rw-r--r-- | clang/test/Modules/Inputs/template-default-args/a.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/template-default-args/a.h b/clang/test/Modules/Inputs/template-default-args/a.h index a8a01a9e313..532cbc8be03 100644 --- a/clang/test/Modules/Inputs/template-default-args/a.h +++ b/clang/test/Modules/Inputs/template-default-args/a.h @@ -9,4 +9,8 @@ template<typename T = int> struct H; template<typename T> struct J {}; template<typename T = int> struct J; struct K : J<> {}; +template<typename T = void> struct L; +struct FriendL { + template<typename T> friend struct L; +}; END |