================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits