[LLVMbugs] [Bug 14445] New: clang recovers poorly from missing '; ' after an enum
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Nov 27 21:10:01 PST 2012
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: unassignedclangbugs at nondot.org
ReportedBy: nicolasweber at gmx.de
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list