This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug objc/47262] New: Better error message upon finding a @property in the instance variable list
- From: "nicola at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 11 Jan 2011 23:21:16 +0000
- Subject: [Bug objc/47262] New: Better error message upon finding a @property in the instance variable list
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47262
Summary: Better error message upon finding a @property in the
instance variable list
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: objc
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: nicola@gcc.gnu.org
The following error is probably fairly common --
/* Contributed by Nicola Pero <nicola.pero@meta-innovation.com>, December 2010.
*/
/* { dg-do compile } */
@interface A
{
@property int x;
}
@end
it would be nice to print a nice, friendly error message (to be defined, but
something explaining that @property should go with the methods, not instance
variables). At the moment we print
testcase.m:6:3: error: expected specifier-qualifier-list before âpropertyâ
which doesn't tell an unexperienced user anything other than there is a syntax
error in the code. ;-)
Thanks