Page 1 of 1

issue-#128 Assignment of named empty string to SHORTCHARs

Posted: Sun Sep 11, 2016 6:08 am
by Josef Templ
On behalf of Doug I have created this voting for merging the changes of issue-#128.
This issue fixes a very surprising bug in the compiler that lead to incorrect code in the following case:
Assignment of a named empty string constant to a variable of type ARRAY OF SHORTCHAR did not work.
The bug is related with an optimization in the compiler front end where such an assignment is
turned into an assignment of 0X to the first array element. The fix has been done at the same place, i.e. it can
only affect this specific optimization and nothing else.

For the diff see http://redmine.blackboxframework.org/pr ... c73e8746c7.

- Josef

Re: issue-#128 Assignment of named empty string to SHORTCHAR

Posted: Mon Sep 12, 2016 9:16 am
by Josef Templ
merged to master.