[LLVMbugs] [Bug 3220] New: All enum declarations are empty in the AST.
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Tue Dec 16 06:08:56 PST 2008
http://llvm.org/bugs/show_bug.cgi?id=3220
Summary: All enum declarations are empty in the AST.
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: AST
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: bolzoni at cs.unipr.it
CC: llvmbugs at cs.uiuc.edu, bagnara at cs.unipr.it
clang version: 61081
clang::EnumDecl:: enumerator_begin() == clang::EnumDecl:: enumerator_end() also
non-empty enum declarations.
Input file:
enum colours {
WHITE,
BLACK,
OCHRE,
BURNT_SIENNA,
INDIGO,
AZURE
};
enum colours a;
In the program I have:
clang::EnumDecl::enumerator_iterator i = enum_decl-> enumerator_begin(),
e = enum_decl-> enumerator_end();
if (i == e)
assert(0 && "The enum should not be empty!");
where the assert fails.
--
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