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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs