commit 5dc64fc95bcea6e930d1caf8707aedd356af818b
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Thu Aug 27 16:09:32 2015 +0200
Commit:     Roberto E. Vargas Caballero <[email protected]>
CommitDate: Thu Aug 27 16:09:32 2015 +0200

    Fix error message in label()

diff --git a/cc1/stmt.c b/cc1/stmt.c
index b4de938..e72dbde 100644
--- 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;

Reply via email to