[Clang] Permit static constexpr variables in constexpr functions
authorCorentin Jabot <corentinjabot@gmail.com>
Mon, 28 Nov 2022 20:05:07 +0000 (21:05 +0100)
committerCorentin Jabot <corentinjabot@gmail.com>
Mon, 28 Nov 2022 20:38:31 +0000 (21:38 +0100)
commit5607fc002dd43514a605ba1e83735e74340ec95d
treec4927e30c7701443318783946cafa145efb625ff
parentb24d89a0428c6f5d0367ece123e566d773c4bcbb
[Clang] Permit static constexpr variables in constexpr functions

This implement the C++23 paper P2647R1 (adopted in Kona)

Reviewed By: #clang-language-wg, erichkeane

Differential Revision: https://reviews.llvm.org/D138851
clang/docs/ReleaseNotes.rst
clang/lib/AST/ExprConstant.cpp
clang/lib/Frontend/InitPreprocessor.cpp
clang/test/Lexer/cxx-features.cpp
clang/test/SemaCXX/constant-expression-cxx2b.cpp
clang/www/cxx_status.html