From 29a640446acf3cdcc945251c5352778084f21afe Mon Sep 17 00:00:00 2001 From: ceriel Date: Tue, 18 Oct 1994 13:43:50 +0000 Subject: [PATCH] Remove prototype idfs in casts! --- lang/cem/cemcom.ansi/declar.g | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lang/cem/cemcom.ansi/declar.g b/lang/cem/cemcom.ansi/declar.g index 487f55a7b..a60851b6b 100644 --- a/lang/cem/cemcom.ansi/declar.g +++ b/lang/cem/cemcom.ansi/declar.g @@ -578,7 +578,9 @@ abstract_declarator(register struct declarator *dc;) /* empty */ ] ')' - {add_decl_unary(dc, FUNCTION, 0, (arith)0, NO_PARAMS, pl);} + {add_decl_unary(dc, FUNCTION, 0, (arith)0, NO_PARAMS, pl); + if (pl) remove_proto_idfs(pl); + } | arrayer(&count) {add_decl_unary(dc, ARRAY, 0, count, NO_PARAMS, NO_PROTO);}