diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-28 19:22:41 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-02-28 19:22:41 +0000 |
commit | e44d834f170748e1672c1cb7a039833439e5fe64 (patch) | |
tree | efa78f2b2be7dbea497b810ce8a930c3026cdc14 /gcc/c-parser.c | |
parent | 91141d3997f95af398a8c0db653784cab6aa6fef (diff) | |
download | gcc-e44d834f170748e1672c1cb7a039833439e5fe64.tar.gz |
PR c/20245
* c-parser.c (c_parser_compound_statement): Return error_mark_node
instead of NULL_TREE on error.
testsuite:
* gcc.dg/pr20245-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95693 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 adebfd20589..de6999a0add 100644 --- a/gcc/c-parser.c +++ b/gcc/c-parser.c @@ -3170,7 +3170,7 @@ c_parser_compound_statement (c_parser *parser) { tree stmt; if (!c_parser_require (parser, CPP_OPEN_BRACE, "expected %<{%>")) - return NULL_TREE; + return error_mark_node; stmt = c_begin_compound_stmt (true); c_parser_compound_statement_nostart (parser); return c_end_compound_stmt (stmt, true); |