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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


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

Reply via email to