[LLVMbugs] [Bug 16046] New: Redefining an ivar contained in a class extension in implementation produces two identical invars
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri May 17 03:21:41 PDT 2013
http://llvm.org/bugs/show_bug.cgi?id=16046
Bug ID: 16046
Summary: Redefining an ivar contained in a class extension in
implementation produces two identical invars
Product: clang
Version: 3.1
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: negm-awad at cocoading.de
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
1. Source
@interface Person : NSObject
@end
@interface Person ()
{
NSString *firstName;
}
@end
@implementation Person
{
NSString *firstName;
}
2. Expected behavior
I expect an error as the ivar would be defined in the class' interface:
"Error: Instance variable is already declared"
3. Actual behavior:
No error, but two ivars with the same name.
Thanks in advance
--
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/20130517/b6b11cad/attachment.html>
More information about the llvm-bugs
mailing list