summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/Inputs/template-default-args/a.h
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-08-17 20:24:17 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-08-17 20:24:17 +0000
commit6dc8ae10aa47c59f44339f1e024ee640c72092a8 (patch)
tree80f4364f16cacf581461b7f06b446c966a01a4e5 /clang/test/Modules/Inputs/template-default-args/a.h
parent8778fea0bb0247591c2a54d34c76dd631ab70cd7 (diff)
downloadbcm5719-llvm-6dc8ae10aa47c59f44339f1e024ee640c72092a8.tar.gz
bcm5719-llvm-6dc8ae10aa47c59f44339f1e024ee640c72092a8.zip
[modules] When parsing the base specifiers of a parse-merged class, the current
context is the class itself but lookups should be performed starting with the lookup parent of the class (class and base members don't shadow types from the surrounding context because they have not been declared yet). llvm-svn: 245236
Diffstat (limited to 'clang/test/Modules/Inputs/template-default-args/a.h')
-rw-r--r--clang/test/Modules/Inputs/template-default-args/a.h3
1 files changed, 3 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 19c80549d1c..a8a01a9e313 100644
--- a/clang/test/Modules/Inputs/template-default-args/a.h
+++ b/clang/test/Modules/Inputs/template-default-args/a.h
@@ -6,4 +6,7 @@ template<typename T> struct D;
template<typename T> struct E;
template<typename T = int> struct G;
template<typename T = int> struct H;
+template<typename T> struct J {};
+template<typename T = int> struct J;
+struct K : J<> {};
END
OpenPOWER on IntegriCloud