ref: ac904dae0efce5a0fd81709566dd25d22d79291f
parent: ad37e51e277f84bb1985379d54f2974b3d35bc3a
author: Roberto E. Vargas Caballero <[email protected]>
date: Fri Jul 5 08:28:22 EDT 2013
Fix bug in listdcl The parameter of declarator must be the base of the current definition, and not the non initialized pointer to the destiny type.
--- a/decl.c
+++ b/decl.c
@@ -193,7 +193,7 @@
struct node *sp, *np;
register struct ctype *tp;
- declarator(tp);
+ declarator(base);
tp = decl_type(base);
(cursym->ctype = tp)->refcnt++;
sp = nodesym(cursym);