[PATCH] D123649: Allow flexible array initialization in C++.
Akira Hatanaka via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon May 22 13:33:24 PDT 2023
ahatanak added a comment.
We found another case where the assertion fails.
$ cat test.cpp
struct S {
int len;
int i[];
};
S value{0, 0};
$ clang++ -std=c++11 -c test.cpp
`CstSize` is only 4 while `VarSize` is 8.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123649/new/
https://reviews.llvm.org/D123649
More information about the cfe-commits
mailing list