================
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -Wno-return-type -std=c++23 -fsyntax-only -verify %s
+// expected-no-diagnostics
+constexpr int f() { }
+static_assert(__is_same(decltype([] constexpr -> int { }( )), int));
----------------
AaronBallman wrote:

For C++23, I think users will have to use `-Winvalid-constexpr` to be notified 
of "this will never be valid in a constant expression" thanks to P2448.

https://github.com/llvm/llvm-project/pull/94123
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to