repo.or.cz
/
gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Daily bump.
[gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
error1.C
blob
115d800bb35e41c34e79d749a049df6d6b43e91f
1
// PR c++/34395
2
// { dg-do compile { target c++11 } }
3
4
void f(...);
5
template<int... N> void foo (int... x[N]) // { dg-message "declared here" }
6
{
7
struct A
8
{
9
A () { f(x...); } // { dg-error "use of parameter from containing function" }
10
};
11
}
12
13
int main()
14
{
15
int ar[4];
16
foo<4>(ar);
17
}