[PATCH] D135013: [clang][Interp] Array initialization via ImplicitValueInitExpr
Shafik Yaghmour via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 13 14:11:21 PDT 2022
shafik added a comment.
The following also generates an `ImplicitValueInitExpr`:
template <typename T, unsigned N>
struct B {
T a[N];
};
int main() {
constexpr B<int,10> arr = {};
constexpr int x = arr.a[0];
}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135013/new/
https://reviews.llvm.org/D135013
More information about the cfe-commits
mailing list