diff options
author | Corentin Jabot <corentinjabot@gmail.com> | 2021-10-05 23:33:31 +0200 |
---|---|---|
committer | Corentin Jabot <corentinjabot@gmail.com> | 2022-03-22 19:51:19 +0100 |
commit | 683e83c56f98df6fe42d506a04dda44309ca758f (patch) | |
tree | 425747d6753617f8a8f10b6df4de06805135143b /clang/www | |
parent | bafbae238aa1948aa511c734a613a95d89a72546 (diff) | |
download | llvm-683e83c56f98df6fe42d506a04dda44309ca758f.zip llvm-683e83c56f98df6fe42d506a04dda44309ca758f.tar.gz llvm-683e83c56f98df6fe42d506a04dda44309ca758f.tar.bz2 |
[Clang][C++2b] P2242R3: Non-literal variables [...] in constexpr
Allow goto, labelled statements as well as `static`, `thread_local`, and
non-literal variables in `constexpr` functions.
As specified. for all of the above (except labelled statements) constant
evaluation of the construct still fails.
For `constexpr` bodies, the proposal is implemented with diagnostics as
a language extension in older language modes. For determination of
whether a lambda body satisfies the requirements for a constexpr
function, the proposal is implemented only in C++2b mode to retain the
semantics of older modes for programs conforming to them.
Reviewed By: aaron.ballman, hubert.reinterpretcast, erichkeane
Differential Revision: https://reviews.llvm.org/D111400
Diffstat (limited to 'clang/www')
-rwxr-xr-x | clang/www/cxx_status.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/www/cxx_status.html b/clang/www/cxx_status.html index afeaf8d..a759623 100755 --- a/clang/www/cxx_status.html +++ b/clang/www/cxx_status.html @@ -1361,7 +1361,7 @@ C++20, informally referred to as C++2b.</p> <tr> <td>Non-literal variables (and labels and gotos) in constexpr functions</td> <td><a href="https://wg21.link/P2242R3">P2242R3</a></td> - <td class="none" align="center">No</td> + <td class="unreleased" align="center">Clang 15</td> </tr> <tr> <td>Character encoding of diagnostic text</td> |