[hackers] [scc] Initialize field u.token in typedef || Roberto E. Vargas Caballero
commit 210ed214bd0c9804f08a68706e216f65c9aec6b4
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Sat Jan 9 23:45:13 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
CommitDate: Sat Jan 9 23:45:13 2016 +0100
Initialize field u.token in typedef
This field is used in specifier(), and don't set it
meant that the secondary token was 0 and specifier read
two token from the input, because the type variable
kept being 0.
diff --git a/cc1/decl.c b/cc1/decl.c
index 5fe0c6a..7b7ff2d 100644
--- a/cc1/decl.c
+++ b/cc1/decl.c
_AT_@ -716,7 +716,7 @@ identifier(struct decl *dcl)
break;
case TYPEDEF:
flags |= ISTYPEDEF;
- sym->token = TYPEIDEN;
+ sym->u.token = sym->token = TYPEIDEN;
break;
}
sym->flags = flags;
Received on Sun Jan 10 2016 - 09:15:59 CET
This archive was generated by hypermail 2.3.0
: Sun Jan 10 2016 - 09:24:22 CET