1 // { dg-do compile { target c++14 } } 2 // { dg-additional-options "-Wno-return-type" } 3 4 constexpr int foo(int i)5foo (int i) 6 { 7 int a[i] = { }; // { dg-error "7:ISO C\\+\\+ forbids variable length array .a" } 8 } 9 10 constexpr int j = foo (1); // { dg-error "flows off the end|in .constexpr. expansion of" } 11