PR c++/41876
* parser.c (cp_parser_exception_declaration): Pass true to
is_condition parm of cp_parser_type_specifier_seq.
From-SVN: r153873
+2009-11-03 Jason Merrill <jason@redhat.com>
+
+ PR c++/41876
+ * parser.c (cp_parser_exception_declaration): Pass true to
+ is_condition parm of cp_parser_type_specifier_seq.
+
2009-11-03 Dodji Seketeli <dodji@redhat.com>
PR c++/37093
= "types may not be defined in exception-declarations";
/* Parse the type-specifier-seq. */
- cp_parser_type_specifier_seq (parser, /*is_condition=*/false,
+ cp_parser_type_specifier_seq (parser, /*is_declaration=*/true,
&type_specifiers);
/* If it's a `)', then there is no declarator. */
if (cp_lexer_next_token_is (parser->lexer, CPP_CLOSE_PAREN))
+2009-10-28 Jason Merrill <jason@redhat.com>
+
+ PR c++/41876
+ * g++.dg/parse/eh-decl.C: New.
+
2009-11-03 Dodji Seketeli <dodji@redhat.com>
PR c++/37093
--- /dev/null
+// PR c++/41876
+
+struct A;
+
+void foo()
+{
+ try {} catch(int A) {}
+}