* g++.dg/cpp1y/pr63996.C: New file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218683
138bc75d-0d04-0410-961f-
82ee72b054a4
+2014-12-12 Kai Tietz <ktietz@redhat.com>
+
+ PR c++/63996
+ * g++.dg/cpp1y/pr63996.C: New file.
+
2014-12-12 Richard Sandiford <richard.sandiford@arm.com>
Joseph Myers <joseph@codesourcery.com>
--- /dev/null
+// { 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" }
+