public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug objc/47232] New: Confusing ObjC error message "attributes may not be specified before before ‘class’"
@ 2011-01-09 14:34 nicola at gcc dot gnu.org
  2011-01-09 14:46 ` [Bug objc/47232] " nicola at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: nicola at gcc dot gnu.org @ 2011-01-09 14:34 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-01-09 22:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-09 14:34 [Bug objc/47232] New: Confusing ObjC error message "attributes may not be specified before before ‘class’" nicola at gcc dot gnu.org
2011-01-09 14:46 ` [Bug objc/47232] " nicola at gcc dot gnu.org
2011-01-09 15:31 ` nicola at gcc dot gnu.org
2011-01-09 23:05 ` nicola at gcc dot gnu.org
2011-01-09 23:07 ` nicola at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).