From 0a7d7dea564b2f054f5fa7314302b5cb7224ebbb Mon Sep 17 00:00:00 2001 From: Matthias Klose Date: Mon, 22 Jun 2009 15:18:38 +0000 Subject: re PR objc++/28050 (ICE on invalid initializer) gcc/ 2009-06-22 Steven Bosscher PR objc/28050 * c-parser.c (c_parser_objc_message_args): Return error_mark_node instead of NULL if a parser error occurs. gcc/objc/ 2009-06-22 Steven Bosscher PR objc/28050 * objc-act.c (objc_build_message_args): Return if ARGS is the error_mark_node. gcc/testsuite/ 2009-06-22 Matthias Klose PR objc/28050 * pr28050.m: New testcase. From-SVN: r148804 --- gcc/objc/ChangeLog | 6 ++++++ gcc/objc/objc-act.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'gcc/objc') diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog index 426a6a8..656a5f6 100644 --- a/gcc/objc/ChangeLog +++ b/gcc/objc/ChangeLog @@ -1,3 +1,9 @@ +2009-06-22 Steven Bosscher + + PR objc/28050 + * objc-act.c (objc_build_message_args): Return if ARGS is the + error_mark_node. + 2009-06-19 Ian Lance Taylor * objc-act.c (objc_in_struct, objc_struct_types): Remove. diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index b6a01ed..733818f 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -6268,7 +6268,7 @@ objc_build_message_expr (tree mess) #endif tree method_params = NULL_TREE; - if (TREE_CODE (receiver) == ERROR_MARK) + if (TREE_CODE (receiver) == ERROR_MARK || TREE_CODE (args) == ERROR_MARK) return error_mark_node; if (CAN_HAVE_LOCATION_P (receiver)) -- cgit v1.1