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/c-parser.c | |
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/c-parser.c')
-rw-r--r-- | gcc/c-parser.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-parser.c b/gcc/c-parser.c index 29e399fcdc1..4d6e2d3060a 100644 --- a/gcc/c-parser.c +++ b/gcc/c-parser.c @@ -6818,7 +6818,7 @@ c_parser_objc_message_args (c_parser *parser) { tree keywordexpr; if (!c_parser_require (parser, CPP_COLON, "expected %<:%>")) - return list; + return error_mark_node; keywordexpr = c_parser_objc_keywordexpr (parser); list = chainon (list, build_tree_list (sel, keywordexpr)); sel = c_parser_objc_selector (parser); |