shithub: scc

Download patch

ref: 6457215350890348ab42c5f6569a987c6bd525d5
parent: a9a164fa5ed865bd5cbb9eac45b7a09b60e09812
author: Quentin Rameau <quinq@fifth.space>
date: Thu Mar 9 10:25:06 EST 2017

[cc1] Fix boundary parameter in dodcl

--- a/cc1/decl.c
+++ b/cc1/decl.c
@@ -908,7 +908,7 @@
 static Symbol *
 dodcl(int rep, Symbol *(*fun)(struct decl *), unsigned ns, Type *parent)
 {
-	Symbol *sym, *pars[NR_FUNARG+1];
+	Symbol *sym, *pars[NR_FUNPARAM+1];
 	Type *base;
 	struct decl dcl;
 	struct declarators stack;