Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/constexpr-95307.C

raw
1 // PR c++/95307
2 // { dg-do compile { target c++11 } }
3
4 int v;
5 constexpr auto p{reinterpret_cast<__UINTPTR_TYPE__>(&v) - 1u}; // { dg-error "conversion from pointer type" }