I wrote:
Emil Jerabek wrote:
I encountered a compiler bug during testing :-( Strictly speaking, the Standard doesn't allow function calls in constant expressions, but I expect the compiler would reject it if it were not supposed to work.
At least that's a known bug (at least known to us; I'll have to check the to-do list if it's listed there). I'll look into it ... (emil11.pas)
I was able to fix this particular bug. However, such constants still don't work as a bound of a global array. But at least GPC gives a proper error message in this case (`size of ... isn't constant'). But it works with a local array (emil11c.pas).
Frank