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

2017-02-19 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79600 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

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

2017-02-19 Thread smal.root at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79600 --- Comment #5 from smalcom --- Second error string... I'm stupid. Thanks for help. So, old compilers just kinder?

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

2017-02-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79600 --- Comment #4 from Jonathan Wakely --- 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.

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

2017-02-19 Thread smal.root at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79600 --- Comment #3 from smalcom --- Created attachment 40777 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40777&action=edit ii from 7.0.1

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

2017-02-19 Thread smal.root at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79600 --- Comment #2 from smalcom --- Created attachment 40776 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40776&action=edit ii from 6.3.0

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

2017-02-19 Thread smal.root at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79600 --- Comment #1 from smalcom --- Created attachment 40775 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=40775&action=edit ii from 4.9.4