PR c++/77539
* g++.dg/cpp1y/pr77539.C: New.
From-SVN: r240138
+2016-09-14 Nathan Sidwell <nathan@acm.org>
+
+ PR c++/77539
+ * g++.dg/cpp1y/pr77539.C: New.
+
2016-09-14 Christophe Lyon <christophe.lyon@linaro.org>
* g++.dg/cpp0x/lambda/lambda-mangle.C: Move dg-do directive before
--- /dev/null
+// PR c++/77539
+// { dg-do compile { target c++14 } }
+
+constexpr int foobar()
+{
+ int array[100] = {};
+ int *ar = array;
+ if (ar == nullptr) // Error...
+ {
+ return 0;
+ }
+ return 1;
+}
+static_assert(foobar(),"");