[Bug c++/67625] some constexpr expressions rejected as enumerator value

2015-11-04 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67625 --- Comment #2 from Oleg Endo --- There is a funny work around for this though ... #include struct bswapped16 { const uint16_t val; constexpr bswapped16 (uint16_t v) : val (__builtin_bswap16 (v)) { } }; constexpr uint16_t bswap16 (uint16_

[Bug c++/67625] some constexpr expressions rejected as enumerator value

2015-11-04 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67625 Oleg Endo changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|