PR c/22458
* c-decl.c (c_begin_compound_stmt): Set the initial body to
error_mark_node, not NULL.
From-SVN: r102849
+2005-08-08 Richard Sandiford <richard@codesourcery.com>
+
+ PR c/22458
+ * c-decl.c (c_begin_compound_stmt): Set the initial body to
+ error_mark_node, not NULL.
+
2005-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
tree stmt;
/* Create the COMPOUND_STMT. */
- stmt = add_stmt (build_stmt (COMPOUND_STMT, NULL_TREE));
+ stmt = add_stmt (build_stmt (COMPOUND_STMT, error_mark_node));
return stmt;
}
+2005-08-08 Richard Sandiford <richard@codesourcery.com>
+
+ PR c/22458
+ * gcc.dg/pr22458-1.c: New test.
+
2005-08-03 Richard Sandiford <richard@codesourcery.com>
PR target/18582
-/* { dg-error "expected declaration or statement" "" { target *-*-* } 0 } */
+/* { dg-error "(parse|syntax) error" "" { target *-*-* } 0 } */
void foo()
{
__PRETTY_FUNCTION__;