aboutsummaryrefslogtreecommitdiff
path: root/clang/docs
diff options
context:
space:
mode:
authorMariya Podchishchaeva <mariya.podchishchaeva@intel.com>2024-03-07 11:36:50 +0300
committerGitHub <noreply@github.com>2024-03-07 09:36:50 +0100
commit99500e8c08a4d941acb8a7eb00523296fb2acf7a (patch)
tree0d3c4b7e7d84f6221699eb6b06462e30d67e0c72 /clang/docs
parent91808c845fd6f0624525b6d6348b2c284628ce58 (diff)
downloadllvm-99500e8c08a4d941acb8a7eb00523296fb2acf7a.zip
llvm-99500e8c08a4d941acb8a7eb00523296fb2acf7a.tar.gz
llvm-99500e8c08a4d941acb8a7eb00523296fb2acf7a.tar.bz2
[Clang][C++23] Implement P2448R2: Relaxing some constexpr restrictions (#77753)
Per https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p2448r2.html function/constructor/destructor can be marked `constexpr` even though it never produces a constant expression. Non-literal types as return types and parameter types of functions marked `constexpr` are also allowed. Since this is not a DR, the diagnostic messages are still preserved for C++ standards older than C++23.
Diffstat (limited to 'clang/docs')
-rw-r--r--clang/docs/ReleaseNotes.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst
index 8300a84..1b901a2 100644
--- a/clang/docs/ReleaseNotes.rst
+++ b/clang/docs/ReleaseNotes.rst
@@ -97,6 +97,8 @@ C++23 Feature Support
- Implemented `P2718R0: Lifetime extension in range-based for loops <https://wg21.link/P2718R0>`_. Also
materialize temporary object which is a prvalue in discarded-value expression.
+- Implemented `P2448R2: Relaxing some constexpr restrictions <https://wg21.link/P2448R2>`_.
+
C++2c Feature Support
^^^^^^^^^^^^^^^^^^^^^