blob: 33557f2f80b20d9b9f4391f15439fed882c957df (
plain)
1
2
3
4
5
6
7
8
9
10
|
// PR c++/34395
// { dg-do compile { target c++11 } }
template<int... N> void foo (int... x[N]) // { dg-message "int \\\[N\\\]\\.\\.\\. x" }
{
struct A
{
A () { x; } // { dg-error "use of parameter from containing function" }
};
}
|