http://llvm.org/bugs/show_bug.cgi?id=15564

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

Reply via email to