[Bug c++/87389] if constexpr not working properly with static_assert

2023-02-18 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87389 --- Comment #4 from CVS Commits --- The trunk branch has been updated by Jason Merrill : https://gcc.gnu.org/g:9944ca17c0766623bce260684edc614def7ea761 commit r13-6133-g9944ca17c0766623bce260684edc614def7ea761 Author: Jason Merrill Date: Fri

[Bug c++/87389] if constexpr not working properly with static_assert

2019-11-19 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87389 Jonathan Wakely changed: What|Removed |Added CC||paultargosz86 at googlemail dot co

[Bug c++/87389] if constexpr not working properly with static_assert

2018-09-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87389 --- Comment #2 from Jonathan Wakely --- Specifically, the not-taken branch of an if constexpr is only discarded when inside a template. In a non-template both branches are compiled as normal, and so both static assertions get compiled. Since both

[Bug c++/87389] if constexpr not working properly with static_assert

2018-09-21 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87389 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---