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.