From ecb7e5c8afe929ee38155db94de6b084ec32a645 Mon Sep 17 00:00:00 2001 From: Roman Divacky Date: Tue, 16 Feb 2010 09:31:36 +0000 Subject: Update clang to r96341. --- test/SemaTemplate/member-function-template.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test/SemaTemplate/member-function-template.cpp') diff --git a/test/SemaTemplate/member-function-template.cpp b/test/SemaTemplate/member-function-template.cpp index 5ea8c1010e5c..aea62855c225 100644 --- a/test/SemaTemplate/member-function-template.cpp +++ b/test/SemaTemplate/member-function-template.cpp @@ -73,3 +73,15 @@ void test_incomplete_access(X1 *x1, X2 *x2) { float &fr = x1->get(); (void)x2->get(); // expected-error{{implicit instantiation of undefined template}} } + +// Instantiation of template template parameters in a member function +// template. +namespace TTP { + template struct X { + template class M, class T> void f(const M&); + }; + + template struct Y { }; + + void test_f(X<3> x, Y y) { x.f(y); } +} -- cgit v1.2.3