From fa021f65ab0b620f7523e4da36e5f443fac6cdae Mon Sep 17 00:00:00 2001 From: coderJeff Date: Sun, 2 Oct 2022 16:14:38 -0400 Subject: [PATCH] fbc: nested types - recursion - don't use static variables in cTypeDecl() since it can be called recursively --- src/compiler/parser-decl-struct.bas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/parser-decl-struct.bas b/src/compiler/parser-decl-struct.bas index 42fa53f997..c52fb9d238 100644 --- a/src/compiler/parser-decl-struct.bas +++ b/src/compiler/parser-decl-struct.bas @@ -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