aboutsummaryrefslogtreecommitdiff
path: root/clang/www
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/www
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/www')
-rwxr-xr-xclang/www/cxx_status.html9
1 files changed, 1 insertions, 8 deletions
diff --git a/clang/www/cxx_status.html b/clang/www/cxx_status.html
index 421b342..5ed27cd 100755
--- a/clang/www/cxx_status.html
+++ b/clang/www/cxx_status.html
@@ -356,14 +356,7 @@ C++23, informally referred to as C++26.</p>
<tr>
<td>Relaxing some constexpr restrictions</td>
<td><a href="https://wg21.link/P2448R2">P2448R2</a></td>
- <td class="partial" align="center">
- <details><summary>Clang 17 (Partial)</summary>
- We do not support outside of defaulted special memeber functions the change that constexpr functions no
- longer have to be constexpr compatible but rather support a less restricted requirements for constexpr
- functions. Which include allowing non-literal types as return values and parameters, allow calling of
- non-constexpr functions and constructors.
- </details></td>
- </td>
+ <td class="unreleased" align="center">Clang 19</td>
</tr>
<tr>
<td>Using unknown pointers and references in constant expressions</td>