[PATCH] D136831: [clang][Interp] Protect Record creation against infinite recusion
Shafik Yaghmour via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 27 21:05:11 PDT 2022
shafik accepted this revision.
shafik added a comment.
LGTM
================
Comment at: clang/test/AST/Interp/records.cpp:144
+ // ref-error {{has incomplete type 'const Bar'}}
+};
+constexpr Bar B; // expected-error {{must be initialized by a constant expression}} \
----------------
How about `static constexpr B* bp=nullptr;`
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D136831/new/
https://reviews.llvm.org/D136831
More information about the cfe-commits
mailing list