causes an assertion failure when the compiler is built with assertions enabled:
Assertion failed: !fstatic, file source\compiler\sc1.c, line 2085
It seems that function declglb() doesn't properly check if a variable is defined with a static specifier, and only has an assertion for this. Normally the compiler should issue error 042: invalid combination of class specifiers in such cases, as names starting with @ imply public.
Minimal complete verifiable example (MCVE):
See above.
Workspace Information:
Compiler version: 3.10.10
Command line arguments provided (or sampctl version):
Issue description:
Compiling the following code:
causes an assertion failure when the compiler is built with assertions enabled:
It seems that function
declglb()
doesn't properly check if a variable is defined with astatic
specifier, and only has an assertion for this. Normally the compiler should issueerror 042: invalid combination of class specifiers
in such cases, as names starting with@
implypublic
.Minimal complete verifiable example (MCVE):
See above.
Workspace Information: