This is the mail archive of the gcc-patches@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]

PR c/29062: unclear diagnostic for declaration after label


:ADDPATCH c:

This patch adds a clearer error when parsing a declaration after a label.

Bootstrapped and regression tested.

OK for trunk?

2007-11-03  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
  PR c/29062
  * c-parser.c (c_parser_statement_after_labels): Error if a
declaration is parsed after a label.

testsuite/
  * 20031223-1.c: Adjust error output.
  * parse-decl-after-label.c: New.

Attachment: parse-decl-after-label.diff
Description: Text document


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