aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/cpp1y/vla11.C
blob: c84b0bbb9afbcebdc99a8347344fc812234133cc (plain)
1
2
3
4
5
6
7
8
// 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" }
}