scc

Simple C99 Compiler
Log | Files | Refs | README | LICENSE

commit 5dc64fc95bcea6e930d1caf8707aedd356af818b
parent 4fcf1afb4b17da514f823d16890dd4ece09ecf1e
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Thu, 27 Aug 2015 16:09:32 +0200

Fix error message in label()

Diffstat:
cc1/stmt.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cc1/stmt.c b/cc1/stmt.c @@ -22,7 +22,7 @@ label(void) case TYPEIDEN: sym = lookup(NS_LABEL, yytext); if (sym->flags & ISDEFINED) - error("label '%s' already defined", yytoken); + error("label '%s' already defined", yytext); if ((sym->flags & ISDECLARED) == 0) sym = install(NS_LABEL, sym); sym->flags |= ISDEFINED;