Bug #128

Assignment of named empty string to ARRAY OF SHORTCHAR does not work

Added by J. Templ over 2 years ago. Updated over 2 years ago.

Status:ClosedStart date:09/06/2016
Priority:NormalDue date:
Assignee:J. Templ% Done:

0%

Category:-
Target version:1.7
Forum topic:

Description

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.

Associated revisions

Revision 8afde822
Added by J. Templ over 2 years ago

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 <>

Revision d0ed1f7e
Added by J. Templ over 2 years ago

Merge pull request #134 from BlackBoxCenter/issue-#128

Refs: #128.

History

#1 Updated by J. Templ over 2 years ago

  • Status changed from New to Closed

Also available in: Atom PDF