OSDN Git Service

PR c++/35316
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / cpp0x / variadic76.C
1 // PR c++/33496
2 // { dg-do compile }
3 // { dg-options "-std=gnu++0x" }
4
5 template<int... N> int foo ()
6 {
7   return sizeof... N ();        // { dg-error "cannot be used as a function" }
8 }
9
10 int bar ()
11 {
12   return foo<0> ();
13 }