[Bug c++/99452] Inconsistent constinit handling

2021-03-08 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99452 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #2

[Bug c++/99452] Inconsistent constinit handling

2021-03-07 Thread nathan at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99452 --- Comment #1 from Nathan Sidwell --- Here's another: using value_t = unsigned long; unsigned obj; constinit value_t failed = reinterpret_cast (&obj) + (11 << 0); constinit value_t accepted = reinterpret_cast (&obj) + (11); bester:309>gc