diff options
author | doko <doko@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-22 15:18:38 +0000 |
---|---|---|
committer | doko <doko@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-06-22 15:18:38 +0000 |
commit | 61a9d3ca3689fdf0db112b900b9579aafd198604 (patch) | |
tree | 1c2273d6468cf0a0d4c9c4d44bbe46d3809fe776 /gcc/objc | |
parent | 1e0b9bbb13f73af9569628523982329e1485fac3 (diff) | |
download | gcc-61a9d3ca3689fdf0db112b900b9579aafd198604.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@148804 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/objc/objc-act.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/objc/ChangeLog b/gcc/objc/ChangeLog index 426a6a8a2f3..656a5f6766c 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 b6a01ed316b..733818f41bb 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)) |