Skip to content

Commit

Permalink
fbc: nested types - recursion
Browse files Browse the repository at this point in the history
- don't use static variables in cTypeDecl() since it can be called recursively
  • Loading branch information
jayrm committed Oct 7, 2022
1 parent 669cffb commit fa021f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/compiler/parser-decl-struct.bas
Expand Up @@ -945,7 +945,7 @@ end sub
'' END (TYPE|UNION) .
sub cTypeDecl( byval attrib as FB_SYMBATTRIB )

static as zstring * FB_MAXNAMELEN+1 id
dim as zstring * FB_MAXNAMELEN+1 id
dim as integer isunion = any, checkid = any
dim as FBSYMBOL ptr sym = any
dim as FB_CMPSTMTSTK ptr stk = any
Expand Down

0 comments on commit fa021f6

Please sign in to comment.