[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 10:48:00 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=49171

--- Comment #20 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to mark from comment #18)
> And of course none of this is needed when coding in C instead of C++. The
> following struct is placed in .data without any workarounds being required:

And doesn't exactly the same thing work fine in C++?


More information about the Gcc-bugs mailing list