blob: 010416a77a1447859ba7ebedd3fb1c4490392b30 [file] [log] [blame]
// PR c++/89599
// { dg-do compile { target c++11 } }
void foo (int x) {}
constexpr void *arr[2] = { (void*) &foo, (void *) foo };// { dg-error "'reinterpret_cast' is not a constant expression" }
constexpr void *ptr = (void *) &foo; // { dg-error "'reinterpret_cast' is not a constant expression" }