aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc
diff options
context:
space:
mode:
authorMatthias Klose <doko@gcc.gnu.org>2009-06-22 15:18:38 +0000
committerMatthias Klose <doko@gcc.gnu.org>2009-06-22 15:18:38 +0000
commit0a7d7dea564b2f054f5fa7314302b5cb7224ebbb (patch)
tree1c2273d6468cf0a0d4c9c4d44bbe46d3809fe776 /gcc/objc
parentb959d637027e0a06204e6b92c60c76ea801c2c92 (diff)
downloadgcc-0a7d7dea564b2f054f5fa7314302b5cb7224ebbb.zip
gcc-0a7d7dea564b2f054f5fa7314302b5cb7224ebbb.tar.gz
gcc-0a7d7dea564b2f054f5fa7314302b5cb7224ebbb.tar.bz2
re PR objc++/28050 (ICE on invalid initializer)
gcc/ 2009-06-22 Steven Bosscher <steven@gcc.gnu.org> 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 <steven@gcc.gnu.org> 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 <doko@ubuntu.com> PR objc/28050 * pr28050.m: New testcase. From-SVN: r148804
Diffstat (limited to 'gcc/objc')
-rw-r--r--gcc/objc/ChangeLog6
-rw-r--r--gcc/objc/objc-act.c2
2 files changed, 7 insertions, 1 deletions
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 <steven@gcc.gnu.org>
+
+ PR objc/28050
+ * objc-act.c (objc_build_message_args): Return if ARGS is the
+ error_mark_node.
+
2009-06-19 Ian Lance Taylor <iant@google.com>
* 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))