// PR c++/82304 // { dg-do compile { target c++14 } } typedef __UINTPTR_TYPE__ uintptr_t; constexpr const char * foo (const char *p) { auto l = reinterpret_cast(p); // { dg-error "conversion from pointer" } ++l; return reinterpret_cast(l); } constexpr auto s = foo ("Hello");