[clang] [Clang][C++23] update constexpr diagnostics for missing return statements per P2448 (PR #94123)
Mariya Podchishchaeva via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 4 01:25:01 PDT 2024
https://github.com/Fznamznon commented:
I wonder if we should always emit an error when a function with non-void return type doesn't have a return statement? In any case it is a serious yet dumb bug that will lead to problems and perhaps some time spent debugging it.
gcc rejects the case for C++23 as well https://godbolt.org/z/8xq8TdEGE .
cc @AaronBallman
https://github.com/llvm/llvm-project/pull/94123
More information about the cfe-commits
mailing list