[clang] Remove delayed typo expressions (PR #143423)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 9 12:55:01 PDT 2025
================
@@ -1888,10 +1888,11 @@ namespace PR15884 {
}
namespace AfterError {
- constexpr int error() {
+ constexpr int error() { // pre-cxx23-error {{no return statement in constexpr function}}
----------------
efriedma-quic wrote:
It would be nice to suppress this diagnostic: if we discard a "return" statement, we shouldn't be complaining that constexpr eval of the function fails.
https://github.com/llvm/llvm-project/pull/143423
More information about the cfe-commits
mailing list