summaryrefslogtreecommitdiff
path: root/gcc/c-parse.in
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-14 23:20:58 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2004-10-14 23:20:58 +0000
commit69c2525c87aa3cda2b5f636702889441ea1698f4 (patch)
tree7534024d48e27ca0af83286859f217f61e28cc3c /gcc/c-parse.in
parentc6224531a4d142294fa7f14edb1f8b082208e3e1 (diff)
downloadgcc-69c2525c87aa3cda2b5f636702889441ea1698f4.tar.gz
PR c/17023
* c-decl.c (store_parm_decls_oldstyle): Care for parameter type as error_mark_node. * c-parse.in (compstmt_primary_start): Check cur_stmt_list non-null instaed of current_function_decl non-null. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89063 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r--gcc/c-parse.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in
index 7542c3959fb..289e7c101af 100644
--- a/gcc/c-parse.in
+++ b/gcc/c-parse.in
@@ -2033,7 +2033,7 @@ compstmt_contents_nonempty:
compstmt_primary_start:
'(' '{'
- { if (current_function_decl == 0)
+ { if (cur_stmt_list == NULL)
{
error ("braced-group within expression allowed "
"only inside a function");