http://llvm.org/bugs/show_bug.cgi?id=3234
Summary: Improve diagnostics for missing Obj-C properties
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: Semantic Analyzer
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
This:
void f(NSObject *o)
{
o.foo;
}
results in the following error when compiled with gcc:
iMac:clang andersca$ gcc -fsyntax-only t.m
t.m: In function 'f':
t.m:5: error: request for member 'sliff' in something not a structure or union
And when compiled with clang:
iMac:clang andersca$ clang -fsyntax-only t.m
t.m:5:5: error: member reference base type 'NSObject *' is not a structure or
union
o.sliff;
~ ^
It would be nice to give a better diagnostic about missing properties if we
notice that the object in question is an Objective-C object.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- 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