1 // PR c++/77539
2 // { dg-do compile { target c++14 } }
3 
foobar()4 constexpr int foobar()
5 {
6   int array[100] = {};
7   int *ar = array;
8   if (ar == nullptr) // Error...
9   {
10     return 0;
11   }
12   return 1;
13 }
14 static_assert(foobar(),"");
15