[LLVMbugs] [Bug 3234] New: Improve diagnostics for missing Obj-C properties
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Thu Dec 18 12:08:11 PST 2008
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: unassignedclangbugs at nondot.org
ReportedBy: andersca at mac.com
CC: llvmbugs at cs.uiuc.edu
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.
More information about the llvm-bugs
mailing list