[LLVMbugs] [Bug 4070] New: error recovery improvement for stmtexprs
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Sat Apr 25 12:10:21 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4070
Summary: error recovery improvement for stmtexprs
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Keywords: quality-of-implementation
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: clattner at apple.com
CC: llvmbugs at cs.uiuc.edu
In this example:
struct fooo {} ;
struct fooo x;
void test(void) {
*({
0;
x/x;
});
}
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 PR4065.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list