[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 30 10:18:10 PDT 2022


cor3ntin added a comment.

I thing to support the template case, we would have to modify `TemplateDeclInstantiator::VisitVarDecl` - which seems the best way to have a diagnostic without running through the whole function AST twice.
However, there is currently no check of any sort there so it would be a bit novel and odd!

Thank you both for the review


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122249/new/

https://reviews.llvm.org/D122249



More information about the cfe-commits mailing list