Closed ArturoDente closed 4 years ago
Hi. Thanks for reporting this bug. The compiler indeed doesn't handle this error in the right way. The problem is here:
dim buff![aa+bb]
Unfortunately this is not going to work in XC=BASIC. DIM
is a compile-time directive, it can't allocate memory in runtime and therefore the array length can only be a constant.
I'll update the compiler to emit a proper error in this situation.
Fixed in the upcoming v2.3
Compiler gives exception not managed when running the following code:
This is the stacktrace of the error: