| Issue |
86855
|
| Summary |
Anonymous struct construct causes a Clang front-end assertion.
|
| Labels |
clang
|
| Assignees |
|
| Reporter |
dgilmore83
|
A ToT "asserts" build of Clang in the following test case that uses the anonymous struct construct. I attached the test case per the "HowToSubmitABug" instructions:
[anon-6e7926.cpp.txt](https://github.com/llvm/llvm-project/files/14780063/anon-6e7926.cpp.txt)
[anon-6e7926.sh.txt](https://github.com/llvm/llvm-project/files/14780067/anon-6e7926.sh.txt)
The assertion message is:
clang++: /tmp/dgilmore/tt/clang/lib/CodeGen/CGExprAgg.cpp:1751: void {anonymous}::AggExprEmitter::VisitCXXParenListOrInitListExpr(clang::Expr*, llvm::ArrayRef<clang::Expr*>, clang::FieldDecl*, clang::Expr*): Assertion `(Field->isUnnamedBitfield() || Field->isAnonymousStructOrUnion()) && "Only unnamed bitfields or ananymous class allowed"' failed.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs