[Bug c++/79600] [c++11] reinterpret_cast not working in enum class

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Sun Feb 19 23:37:00 GMT 2017


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

--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Your code is invalid, the initializer for an enumerator must be a constant
expression and you can't use reinterpret_cast in a constant expression.


More information about the Gcc-bugs mailing list