[LLVMbugs] [Bug 17685] New: [ObjC] properties of enum's aren't type checked
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Oct 24 08:04:55 PDT 2013
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: unassignedclangbugs at nondot.org
Reporter: mayer.julian at googlemail.com
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131024/e5b02bdd/attachment.html>
More information about the llvm-bugs
mailing list