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
constexprintf() {}
static_assert(__is_same(decltype([] constexpr -> int {}()), int));
constevalintg() {}
static_assert(__is_same(decltype([] consteval -> int {}()), int));
Should compile in C++23. It probably still should have a warning diagnostic (the -Wreturn-type "non-void {function|lambda} does not return a value" should be issued for f and g at least), but it shouldn't be an error (https://wg21.link/P2448R2#pnum_24)
Currently, these issue the diagnostic error: no return statement in constexpr/consteval function/lambda