Assignment of named empty string to ARRAY OF SHORTCHAR does not work
|Assignee:||J. Templ||% Done:|
The assignment of a named empty string to an array of SHORTCHAR does not work.
Instead of assigning 0X to the first array element, -1 is assigned.
Reported by Josef Templ, 2016-09-06.
Assignment of named empty string to ARRAY OF SHORTCHAR does not work. Refs: #128.
The compiler converts such a string assignment into s0 := 0X.
The original object, i.e. the named string constant, was not cleared in this transformation
and was still used by the code generator with a value of obj.conval.intval = -1 (=DevCPM.ConstNotAlloc).
Signed-off-by: Josef Templ <firstname.lastname@example.org>