error recovery improvement for stmtexprs #4442
Labels
bugzilla
Issues migrated from bugzilla
clang:diagnostics
New/improved warning or error message in Clang, but not in clang-tidy or static analyzer
quality-of-implementation
Extended Description
In this example:
We emit two diagnostics: one about x/x (good) and one about "indirection requires a pointer operand". The problem is that we correctly kill the expression tree for x/x, but that means that we build and return a compound statement with just { 0; } and the stmt expr gets built with type int. We should somehow propagate invalidity of the last statement in a stmt expr up into the stmt expr itself.
This came from #4437 .
The text was updated successfully, but these errors were encountered: