[LLVMbugs] [Bug 3410] New: Better 'expected '; ' at end of statement diagnostic
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Sun Jan 25 22:52:59 PST 2009
http://llvm.org/bugs/show_bug.cgi?id=3410
Summary: Better 'expected ';' at end of statement diagnostic
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Keywords: quality-of-implementation
Severity: enhancement
Priority: P2
Component: parser
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: clattner at apple.com
CC: llvmbugs at cs.uiuc.edu
Consider this erroneous program:
void foo() {
int X;
X = 4
}
We currently emit:
t.c:4:1: error: expected ';' after expression
}
^
This is ok as far as basic stuff goes, but the caret diagnostics would be much
nicer if the caret was pointing to the end of the previous line (right after
the 4) instead of at the }. This happens very frequently if you forget a ;.
--
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