[LLVMbugs] [Bug 15564] New: Please allow anonymous enums in Objective C methods

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Mar 21 14:26:05 PDT 2013


            Bug ID: 15564
           Summary: Please allow anonymous enums in Objective C methods
           Product: clang
           Version: unspecified
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: dhoerl at mac.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Using Clang: Apple LLVM version 4.2 (clang-425.0.27) (based on LLVM 3.2svn)

this almost works:

- (void)changeSpeed:( enum {slowDown=2, speedUp } )val
ERROR->    if(val == slowDown) {
    } else {

It sure would be nice if we could use anonymous enums somehow...

I tried this with a method just in the implementation file, got the error on
the indicated line. If I put a method prototype into the interface file, then I
get a complaint on the method line too.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130321/5d45de48/attachment.html>

More information about the llvm-bugs mailing list