In the file "symb.bi" on line 333 we have the constant FB_ARRAYDIM_UNKNOWN:
Code: Select all
'' Special value to represent the case where '...' ellipsis was given as ubound
const FB_ARRAYDIM_UNKNOWN = &h8000000000000000ll
Code: Select all
'' Ellipsis ubound? can happen if ubound() is used in
'' an array initializer, when the ubound isn't fully
'' known yet, e.g. in this case:
'' dim array(0 to ...) as integer = { 1, ubound( array ), 3 }
if( bound = FB_ARRAYDIM_UNKNOWN ) then
exit function
end if
Code: Select all
if( (bound != -9223372036854775808ull) ) goto label$270;
{
goto label$250;
}
Code: Select all
SRC\COMPILER\AST-HELPER.BAS: In function 'hConstBound':
SRC\COMPILER\AST-HELPER.BAS:1019:36: error: comparison of integer expressions of different signedness: 'int64' {aka 'long long
int'} and 'long long unsigned int' [-Werror=sign-compare]
Code: Select all
const FB_ARRAYDIM_UNKNOWN = &h8000000000000000ll - 1ll