Forum
Optimizer bug (*solved*) - Printable Version

+- Forum (https://www.boriel.com/forum)
+-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11)
+---- Forum: Bug Reports (https://www.boriel.com/forum/forumdisplay.php?fid=15)
+---- Thread: Optimizer bug (*solved*) (/showthread.php?tid=567)



Optimizer bug (*solved*) - einar - 08-30-2013

Try running this program:

Code:
sub x2()
    DIM a AS UBYTE

    LET a = 129
    IF (a >= 224) OR (a <= 32) THEN
        PRINT "Ops"
    ELSE
        PRINT "OK"
    END IF
end sub

x2()

If compiled using "-O3" it will print "Ops", otherwise it will print "OK".

Tested using ZX BASIC version 1.3.0s1022.


Re: Optimizer bug - boriel - 11-22-2013

Wow! This one took sometime to fix :oops: sorry!
Can you download version ZX BASIC v1.3.0-s1112 and check it, please?
This version also changes license (now LGPL).


Re: Optimizer bug - einar - 02-12-2014

Sorry for the late reply!

I can confirm this bug has been fixed in current stable version 1.3.0s1121.

Thanks a lot!