summaryrefslogtreecommitdiff
path: root/gcc/c-parser.c
diff options
context:
space:
mode:
authorNicola Pero <nicola.pero@meta-innovation.com>2011-01-09 22:47:22 +0000
committerNicola Pero <nicola@gcc.gnu.org>2011-01-09 22:47:22 +0000
commit96bbfbacda31b07f5b13cd37295d7d7846f7f0d9 (patch)
tree0260400a5ae0929c4cdf1a6cff66f26227bf3605 /gcc/c-parser.c
parent8977b4bb0d236760ff2a03f25c4a9c13bea7fe9e (diff)
downloadgcc-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.c3
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;