You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In C++23/26 mode, Clang rejects the following function definition with -Winvalid-constexpr used, saying "constexpr function never produces a constant expression". Godbolt link.
constexprboolfun(constbool& b) { return b; }
This seems related to P2280R4, but the incorrect diagnostic occurs only since Clang 21.