Sign in
gnu
/
gcc
/
ab810952eb7c061e37054ddd1dfe0aa033365131
/
.
/
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" }
}