blob: fb80244d658e86af7a8bf40e5fec1915b836b855 [file] [log] [blame]
// PR c++/33496
// { dg-do compile }
// { dg-options "-std=gnu++0x" }
template<int... N> int foo ()
{
return sizeof... (N ()); // { dg-error "cannot be used as a function" }
return sizeof... (N) (); // { dg-error "cannot be used as a function" }
}
int bar ()
{
return foo<0> ();
}