From 4cb383dccbb1b6c2c1eae7ecebbdc11b9f362edc Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Mon, 8 Nov 2021 21:44:06 +0100 Subject: [PATCH] discovered crash about storage size mismatch --- docs/source/todo.rst | 5 +++++ examples/test.p8 | 11 +++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/docs/source/todo.rst b/docs/source/todo.rst index 730ec1e9b..005a98ead 100644 --- a/docs/source/todo.rst +++ b/docs/source/todo.rst @@ -5,6 +5,11 @@ For next compiler release (7.3) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - if-statement expression simplification sometimes increases code size (Petaxian) FIX THIS! - add expression simplification to while and until loops as well. +- fix crash about storage size mismatch + ubyte bb + uword ww + bb = not bb or not ww ; CRASHES + Blocked by Commander-x16 v39 release diff --git a/examples/test.p8 b/examples/test.p8 index 23dfe74e5..5a3d35113 100644 --- a/examples/test.p8 +++ b/examples/test.p8 @@ -8,13 +8,12 @@ main { ubyte unused ; TODO FIX : why is this not removed as an unused variable? - ubyte iteration_in_progress - uword num_bytes + ubyte bb + uword ww + bb = not bb or not ww ; TODO FIX COMPILER CRASH (STORAGE SIZE) - ubyte qq = not iteration_in_progress or not num_bytes ; TODO FIX COMPILER CRASH (STORAGE SIZE) - - if not iteration_in_progress or not num_bytes - return +; if not iteration_in_progress or not num_bytes +; return ; word xx=0 ; word[] xarr = [1,2,3]