Hi,

On 12/12/2014 11:58 AM, Kai Tietz wrote:
New testcase in g++.dg/cpp1y as pr63996.C

// { dg-do compile { target c++14 } }

constexpr int
foo (int i)
{
   int a[i] = { };
}

constexpr int j = foo (1); // { dg-error "is not a constant expression" }
The testcase fails spuriously because of Jason's VLA reversion commit, please adjust it.

Thanks,
Paolo.

Reply via email to