The field decl (in the testcase) was still valid, which results in a
valid RecordDecl, it led to crash when performing struct layout,
and computing struct size etc.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D81913
[AST][RecoveryExpr] Fix a crash on a field decl with invalid type. ClosedPublic Authored by hokein on Jun 16 2020, 12:28 AM.
Details Summary The field decl (in the testcase) was still valid, which results in a
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jun 16 2020, 12:55 AM Closed by commit rG28923dc2dda4: [AST][RecoveryExpr] Fix a crash on a field decl with invalid type. (authored by hokein). · Explain WhyJun 16 2020, 3:17 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 271014 clang/lib/Sema/SemaDecl.cpp
clang/test/Sema/invalid-member.cpp
|