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

            Bug ID: 17685
           Summary: [ObjC] properties of enum's aren't type checked
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

this doesn't produce a warning even with -Weverything

typedef enum
{
    Magic = 1,
    Bla = 2
} Values;

typedef enum
{
    Hui = 11,
    Pfui = 22
} DiffValues;


@interface Obj : NSObject

@property (assign, nonatomic) Values enumerationProperty;
@end

@implementation Obj
@synthesize enumerationProperty;
- (void)caller
{
    self.enumerationProperty = -1;
    self.enumerationProperty = Pfui;

}
@end

-- 
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