This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug objc/47262] New: Better error message upon finding a @property in the instance variable list


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]