[Bug objc/47232] New: Confusing ObjC error message "=?UTF-8?Q?attributes=20may=20not=20be=20specified=20before=20before=20=E2=80=98class=E2=80=99?="
nicola at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Jan 9 14:34:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47232
Summary: Confusing ObjC error message "attributes may not be
specified before before ‘class’"
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 ObjC testcase:
__attribute__ ((deprecated)) @class A;
triggers the error
test5.m:1:30: error: attributes may not be specified before before ‘class’
which is clumsy. It is due to c-parser.c producing the error "attributes may
not be specified before" which is then joined with "before 'class'".
Thanks
More information about the Gcc-bugs
mailing list