2018-10-23 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / cpp0x / variadic77.C
blob79badaa02c7c608c2a42162162c7d81447ebfab9
1 // PR c++/33496
2 // { dg-do compile { target c++11 } }
4 template<int M, int N> struct pair
6   int i, j;
7   pair () : i (M), j (N) {}
8 };
10 template<int... M> struct S
12   template<int... N> static int foo ()
13   {
14     return sizeof... (pair<M, N>);      // { dg-error "" }
15   }
18 int bar ()
20   return S<0, 1, 2>::foo<0, 1> ();