Sign in
gnu
/
gcc
/
cd2fd5facb5e1882d3f338ed456ae9536f7c0593
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp0x
/
auto25.C
blob: 19d51bc8590feefec1d717b92e011534e33c15e9 [
file
] [
log
] [
blame
]
// PR c++/42056
// { dg-do compile { target c++11 } }
template
<int>
struct
A
{
int
a
[
auto
(
1
)];
// { dg-error "9:invalid use of" }
};
template
<int>
void
foo
()
{
int
a
[
auto
(
1
)];
// { dg-error "9:invalid use of" }
}