If a functionDecl is invalid (e.g. return type cannot be formed), int is
use as he fallback type, which may lead to some bogus diagnostics.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D85714
[AST][RecoveryExpr] Don't preserve the return type if the FunctionDecl is invalid. ClosedPublic Authored by hokein on Aug 11 2020, 2:11 AM.
Details Summary If a functionDecl is invalid (e.g. return type cannot be formed), int is
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 11 2020, 2:38 AM Closed by commit rG031738a56118: [AST][RecoveryExpr] Don't preserve the return type if the FunctionDecl is… (authored by hokein). · Explain WhyAug 11 2020, 4:50 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 284615 clang/lib/Sema/SemaOverload.cpp
clang/test/SemaCXX/recovery-expr-type.cpp
|