commit 7b5ba5cc343973557bdbe4242a8ffb9fcef3b872
parent fdc4af244da2bfa814462c1b3950a95c3959f8eb
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Wed, 26 Oct 2022 13:13:55 +0200
cc1: Don't try to progress in nested functions
The code cannot try to go ahead when a nested declaration
is detected becuse things like the current function only
support one nesting level.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cmd/cc/cc1/decl.c b/src/cmd/cc/cc1/decl.c
@@ -530,7 +530,7 @@ funbody(Symbol *sym, Symbol *pars[])
}
if (curctx != PARAMCTX)
- errorp("nested function declaration");
+ error("nested function declaration");
tp->prop |= TFUNDEF;
curfun = sym;