The following minimal testcase:
dim foo as integer
static statetable(10, 10) as string *2 ' *2 *4 *8 all cause an error, but not other string sizes. The dimensions don't matter
dim temp as string = statetable(1, foo) 'First dimension must be >= 1 and second must be a variable
causes FB 1.04 and 1.05 to produce the following error, while it compiles fine with FB 0.23 (haven't tried anything else):
src/compiler/emit_x86.bas(354): assertion failed at HGETIDXNAME: vreg->ofs =0
Full version info (built with MULTILIB=32 and running on x86_64):
FreeBASIC Compiler - Version 1.04.0 (12-20-2015), built for linux-x86 (32bit)
Copyright (C) 2004-2015 The FreeBASIC development team.
This should be fixed in Git now: [23dbaf]
Related
Commit: [23dbaf]
Last edit: dkl 2016-02-28
Wow, fast! Thank you.