Skip to content
Snippets Groups Projects
Commit 3cdb9188 authored by Richard Smith's avatar Richard Smith
Browse files

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@221838 91177308-0d34-0410-b5e6-96231b3b80d8
parent 17a23e40
No related branches found
No related tags found
No related merge requests found
...@@ -194,8 +194,9 @@ namespace PR19372 { ...@@ -194,8 +194,9 @@ namespace PR19372 {
namespace BetterReduction { namespace BetterReduction {
template<typename ...> struct S; 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 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 = Y<int>;
using T = S<int, int>; using T = S<int, int>;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment