This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug objc/47232] New: Confusing ObjC error message "attributes may not be specified before before âclassâ"
- 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: Sun, 9 Jan 2011 14:09:33 +0000
- Subject: [Bug objc/47232] New: Confusing ObjC error message "attributes may not be specified before before âclassâ"
- Auto-submitted: auto-generated
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