https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99992
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2021-08-28 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed, this is what clang reports: <source>:6:3: error: use of this statement in a constexpr function is a C++14 extension [-Werror,-Wc++14-extensions] if (x) ^ <source>:8:3: error: multiple return statements in constexpr function is a C++14 extension [-Werror,-Wc++14-extensions] return false; ^ <source>:7:5: note: previous return statement is here return true; ^ Maybe we should do something similar.