diff options
author | Nicola Pero <nicola.pero@meta-innovation.com> | 2011-01-09 22:47:22 +0000 |
---|---|---|
committer | Nicola Pero <nicola@gcc.gnu.org> | 2011-01-09 22:47:22 +0000 |
commit | 96bbfbacda31b07f5b13cd37295d7d7846f7f0d9 (patch) | |
tree | 0260400a5ae0929c4cdf1a6cff66f26227bf3605 /gcc/c-parser.c | |
parent | 8977b4bb0d236760ff2a03f25c4a9c13bea7fe9e (diff) | |
download | gcc-96bbfbacda31b07f5b13cd37295d7d7846f7f0d9.tar.gz |
In gcc/: 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
In gcc/:
2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
PR objc/47232
* c-parser.c (c_parser_declaration_or_fndef): Improved
error message.
In gcc/testsuite/:
2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
PR objc/47232
* objc.dg/attributes/invalid-attribute-1.m: New.
* obj-c++.dg/attributes/invalid-attribute-1.mm: New.
From-SVN: r168619
Diffstat (limited to 'gcc/c-parser.c')
-rw-r--r-- | gcc/c-parser.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/c-parser.c b/gcc/c-parser.c index cf34e041463..c9b529319ab 100644 --- a/gcc/c-parser.c +++ b/gcc/c-parser.c @@ -1555,8 +1555,7 @@ c_parser_declaration_or_fndef (c_parser *parser, bool fndef_ok, case RID_AT_PROPERTY: if (specs->attrs) { - c_parser_error (parser, - "attributes may not be specified before" ); + c_parser_error (parser, "unexpected attribute"); specs->attrs = NULL; } break; |