Sign in
chromium
/
chromiumos
/
third_party
/
gcc
/
refs/heads/factory-ryu-6486.B
/
.
/
gcc
/
testsuite
/
g++.dg
/
cpp1y
/
vla11.C
blob: c84b0bbb9afbcebdc99a8347344fc812234133cc [
file
] [
log
] [
blame
]
// PR c++/60251
// { dg-do compile { target c++1y } }
void
foo
(
int
n
)
{
int
x
[
n
];
[&
x
]()
{
decltype
(
x
)
y
;
};
// { dg-error "decltype of array of runtime bound" }
}