issue-#128 Assignment of named empty string to SHORTCHARs

Locked

Shall we merge the bug fix of issue-#128?

YES
7
100%
NO
0
No votes
ABSTAIN
0
No votes
 
Total votes: 7

User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

issue-#128 Assignment of named empty string to SHORTCHARs

Post 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
Last edited by Josef Templ on Mon Sep 12, 2016 9:17 am, edited 1 time in total.
User avatar
Josef Templ
Posts: 2047
Joined: Tue Sep 17, 2013 6:50 am

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

Post by Josef Templ »

merged to master.
Locked