[Bug c++/49171] [C++0x][constexpr] Constant expressions support reinterpret_cast
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Feb 9 14:15:00 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49171
--- Comment #23 from Jonathan Wakely <redi at gcc dot gnu.org> ---
What you want (and what everybody I've seen asking for similar things) is to
give a compile-time constant value to a pointer. All that's needed for that is
an extension to provide a compile-time constant value to a pointer, not to
allow arbitrary reinterpret_casts in constexpr.
A more limited extension that solves the problem is a lot more reasonable.
More information about the Gcc-bugs
mailing list