[PATCH] D122249: [Clang] Add a compatibiliy warning for non-literals in constexpr.
Corentin Jabot via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 23 08:42:44 PDT 2022
cor3ntin updated this revision to Diff 417640.
cor3ntin added a comment.
After talks with Aaron, I'm using CheckLiteralType
in all cases, which adds notes about why a type
is not literal.
We still need to branch on CPlusPlus2b because the
diagnostics take a variable number of arguments,
and I'd rather not have more diagnostics.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122249/new/
https://reviews.llvm.org/D122249
Files:
clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/SemaDeclCXX.cpp
clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/p3-2b.cpp
clang/test/SemaCXX/constant-expression-cxx2b.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122249.417640.patch
Type: text/x-patch
Size: 6161 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220323/b823157d/attachment-0001.bin>
More information about the cfe-commits
mailing list