projects
/
platform
/
upstream
/
gcc48.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Imported Upstream version 4.8.1
[platform/upstream/gcc48.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
return sizeof... (N) (); // { dg-error "cannot be used as a function" }
9
}
10
11
int bar ()
12
{
13
return foo<0> ();
14
}