Another test for PR19372, showing why we need to keep checking arguments after a pack expansion.

llvm-svn: 221838
This commit is contained in:
Richard Smith 2014-11-12 23:50:13 +00:00
parent 3a6b354b3e
commit 5357c0813b
1 changed files with 2 additions and 1 deletions

View File

@ -194,8 +194,9 @@ namespace PR19372 {
namespace BetterReduction {
template<typename ...> struct S;
template<typename ...A> using X = S<A...>;
template<typename ...A> using X = S<A...>; // expected-note {{parameter}}
template<typename ...A> using Y = X<A..., A...>;
template<typename ...A> using Z = X<A..., 1, 2, 3>; // expected-error {{must be a type}}
using T = Y<int>;
using T = S<int, int>;