[PATCH] D157855: [clang][ExprConstant] Improve error message of compound assignment against uninitialized object

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 14 08:36:28 PDT 2023


tbaeder added a comment.

Generally LGTM, but I feel like the changes aren't c++2a specific (except for uninitialized variables in constexpr functions).



================
Comment at: clang/lib/AST/ExprConstant.cpp:4447
+      Info.FFDiag(E, diag::note_constexpr_access_uninit)
+          << /*read of*/ 0 << /*uninitialized object*/ 1;
+      return false;
----------------



Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D157855



More information about the cfe-commits mailing list