[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 01:59:10 PDT 2022


cor3ntin updated this revision to Diff 417534.
cor3ntin added a comment.

- Check That the type is dependant
- Only emit the warning when Kind == Sema::CheckConstexprKind::Diagnose


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.417534.patch
Type: text/x-patch
Size: 5565 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220323/9db95e15/attachment.bin>


More information about the cfe-commits mailing list