* parser.c (cp_parser_parameter_declaration_list): Commit
to fewer tentative parses.
PR c++/14278
* g++.dg/parse/comma1.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78542
138bc75d-0d04-0410-961f-
82ee72b054a4
+2004-02-26 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/14278
+ * parser.c (cp_parser_parameter_declaration_list): Commit
+ to fewer tentative parses.
+
2004-02-26 Giovanni Bajo <giovannibajo@gcc.gnu.org>
PR c++/14284
cannot use this technique when inside a template argument
list. */
if (!parser->in_template_argument_list_p
+ && !parser->in_type_id_in_expr_p
&& cp_parser_parsing_tentatively (parser)
&& !cp_parser_committed_to_tentative_parse (parser)
/* However, a parameter-declaration of the form
+2004-02-26 Mark Mitchell <mark@codesourcery.com>
+
+ PR c++/14278
+ * g++.dg/parse/comma1.C: New test.
+
2004-02-26 Giovanni Bajo <giovannibajo@gcc.gnu.org>
PR c++/14284
--- /dev/null
+// PR c++/14278
+
+struct X {
+ X (int p);
+};
+
+struct A {
+ A(X);
+};
+
+void *p_fun;
+
+A a(X ((*(int (*)(int, int)) p_fun)(0, 0)));