http://llvm.org/bugs/show_bug.cgi?id=14445
Bug #: 14445
Summary: clang recovers poorly from missing ';' after an enum
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
$ cat test.cc
enum A {
a1,
a2
}
void f() {}
$ clang -c test.cc
test.cc:5:1: error: cannot combine with previous 'enum' declaration specifier
void f() {}
^
test.cc:1:6: error: 'A' can not be defined in the result type of a function
enum A {
^
2 errors generated.
In bigger files, this causes tens of errors. Instead, clang should suggest a
';' after the enum.
--
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