blob: 8f66cdc389362eae22dde72c2dbd51dc9414c53c (
plain)
1
2
3
4
5
6
7
8
9
10
|
// { dg-do compile { target c++14 } }
constexpr int
foo (int i)
{
int a[i] = { }; // { dg-error "forbids variable length" }
}
constexpr int j = foo (1); // { dg-error "flows off the end" }
|