scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 5136c8c992d0d99e593e447a0e74aa79dc50fb18
parent 15b64d5d2636103fdeafea92ea7886dbd23c6574
Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date:   Wed,  3 Jun 2026 11:04:49 +0200

cc1: Fix bug introduced in 15b64d5

The symbol related to the tag is symtag and not sym
which ius used later and it is not initialized at this
point.

Co-authored-by: Zhaoming Luo <zhml@posteo.com>

Diffstat:
Msrc/cmd/scc-cc/cc1/decl.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/cmd/scc-cc/cc1/decl.c b/src/cmd/scc-cc/cc1/decl.c @@ -872,7 +872,7 @@ enumdcl(void) namespace = NS_IDEN; if (!accept('{')) { - if (sym->name == NULL) + if (tagsym->name == NULL) unexpected(); namespace = ns; return tp;