repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge -r 127928:132243 from trunk
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
error1.C
blob
751b3b75e0cb320123a15988bfc1438dbf9edca4
1
// PR c++/34395
2
// { dg-do compile }
3
// { dg-options "-std=c++0x" }
4
5
template<int... N> void foo (int... x[N]) // { dg-error "int \\\[N\\\]\\.\\.\\. x" }
6
{
7
struct A
8
{
9
A () { x; } // { dg-error "use of parameter from containing function" }
10
};
11
}