[Bug c++/92580] "if constexpr" not discarding branch

2019-11-20 Thread paultargosz86 at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92580 Paul Targosz changed: What|Removed |Added Status|RESOLVED|CLOSED --- Comment #4 from Paul Targosz

[Bug c++/92580] "if constexpr" not discarding branch

2019-11-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92580 --- Comment #3 from Jonathan Wakely --- See PR 85689 as well.

[Bug c++/92580] "if constexpr" not discarding branch

2019-11-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92580 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/92580] "if constexpr" not discarding branch

2019-11-19 Thread paultargosz86 at googlemail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92580 --- Comment #1 from Paul Targosz --- //examplecode without godbolt #include #include struct GW_t { }; template struct IP_t { constexpr static uint8_t a = A; constexpr static uint8_t b = B; constexpr static uint8_t c = C;