diff --git a/src/cc65/locals.c b/src/cc65/locals.c index 61ec01a3d..be5c09970 100644 --- a/src/cc65/locals.c +++ b/src/cc65/locals.c @@ -324,6 +324,12 @@ static unsigned ParseAutoDecl (Declaration* Decl, unsigned* SC) /* Mark the variable as referenced */ *SC |= SC_REF; + + } else { + + /* No assignment - allocate a label and space for the variable */ + SymData = AllocStorage (g_usebss, Size); + } }