From 0dd22bc4d6b03d4448ca42ab08a5b8e3669bbdf8 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Wed, 25 Jan 2012 16:15:54 +0000 Subject: When we're substituting into a function parameter pack and expect to get a function parameter pack (but don't due to weird substitutions), complain. Fixes the last bit of PR11848. llvm-svn: 148960 --- clang/test/SemaTemplate/alias-templates.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'clang/test/SemaTemplate/alias-templates.cpp') diff --git a/clang/test/SemaTemplate/alias-templates.cpp b/clang/test/SemaTemplate/alias-templates.cpp index c0f9e21b353..75615ee2951 100644 --- a/clang/test/SemaTemplate/alias-templates.cpp +++ b/clang/test/SemaTemplate/alias-templates.cpp @@ -85,7 +85,7 @@ namespace PR11848 { template struct Hidden1 { template - Hidden1(typename T::template U ...ts); + Hidden1(typename T::template U ...ts); // expected-error{{type 'typename Hide::U' (aka 'int') of function parameter pack does not contain any unexpanded parameter packs}} }; template @@ -97,7 +97,6 @@ namespace PR11848 { template using U = int; }; - // FIXME: This case crashes clang at the moment. - //Hidden1 h1; + Hidden1 h1; // expected-note{{in instantiation of template class 'PR11848::Hidden1' requested here}} Hidden2 h2(1, 2); } -- cgit v1.2.3