PR c++/2843
* parser.c (cp_parser_parameter_declaration): Allow attributes to
appear after the declarator.
PR c++/2843
* g++.dg/ext/attrib7.C: New test.
From-SVN: r60801
2003-01-02 Mark Mitchell <mark@codesourcery.com>
+ PR c++/2843
+ * parser.c (cp_parser_parameter_declaration): Allow attributes to
+ appear after the declarator.
+
* call.c (build_new_method_call): Fix typo in message format
string.
/*abstract_p=*/true,
/*ctor_dtor_or_conv_p=*/NULL);
parser->default_arg_ok_p = saved_default_arg_ok_p;
+ /* After the declarator, allow more attributes. */
+ attributes = chainon (attributes, cp_parser_attributes_opt (parser));
}
/* The restriction on definining new types applies only to the type
+2003-01-02 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/2843
+ * g++.dg/ext/attrib7.C: New test.
+
2003-01-02 Neil Booth <neil@daikokuya.co.uk>
* g++.dg/parse/parse6.C: New test.
--- /dev/null
+// { dg-options "-Wunused-parameter" }
+
+void f (int i __attribute__((__unused__))) {}