[LLVMbugs] [Bug 12839] New: Low-quality error with missing semicolon after return
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue May 15 14:36:21 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=12839
Bug #: 12839
Summary: Low-quality error with missing semicolon after return
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Testcase:
void f(int x) {
switch(x) {
case 0: return
case 1: return;
}
}
Current output:
<stdin>:4:5: error: expected expression
case 1: return;
^
1 error generated.
I expected something more like "error: expected ';' after return statement".
--
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