1 // PR c++/59686 2 // { dg-do compile { target c++11 } } 3 main()4 int main() 5 { 6 static const int x = 5; 7 const int * const y = &x; 8 static_assert(y, ""); // { dg-error "non-constant|value" } 9 } 10