function case compiler crash

Previous topic - Next topic

FutureCow

I think I've found a way to crash the compiler

I came across this when I cut and pasted some code into a new function. It appears that if you have a function and put a case statement in it without a select, you crash the compiler without an error. I have reproduced the fault by adding this bit of code to the bottom of my sourcefile.

Code (glbasic) Select
FUNCTION testfnc: a
CASE 1
b=1+ a
ENDFUNCTION


An Error Window pops up :-
Quotegpc.exe has encountered a problem and needs to close.
There's additional windows debug info (crash dump info) but I haven't pasted it here as it's Windows errors and not GLBasic compiler error messages.

I've fixed my code by adding a select statement, but the crash is a bug.
Version - 6.147 demo (it's not my standard PC which is why it's only the old demo version is installed =D )

Kitty Hello

Thank you. Fixed in V7.