Bug #188

compiler trap with SYSTEM.VAL

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

Status:ClosedStart date:06/13/2018
Priority:NormalDue date:
Assignee:J. Templ% Done:

0%

Category:-
Target version:1.7.2
Forum topic:https://forum.blackboxframework.org/viewtopic.php?f=40&t=720

Description

The following example leads to a compiler trap:

PROCEDURE Test;
  VAR li: LONGINT; s: SET;
BEGIN
  li := SYSTEM.VAL(LONGINT, s * s) + 1
END Test;

Reported by Oleg N. Cher, 2018-06-12.

Associated revisions

Revision 079ded77
Added by J. Templ over 3 years ago

trap after illegal SYSTEM.VAL avoided. Refs: #188.
Follow-up traps after detecting illegal SYSTEM.VAL in DevCPC486.Convert are now
avoided by setting the item x to the target form (f) and a dummy mode (Stk).

Signed-off-by: Josef Templ <>

Revision efa8a157
Added by J. Templ over 3 years ago

Merge pull request #203 from BlackBoxCenter/issue-#188

trap after illegal SYSTEM.VAL avoided. Refs: #188.

History

#1 Updated by J. Templ over 3 years ago

  • Forum topic set to https://forum.blackboxframework.org/viewtopic.php?f=40&t=720

#2 Updated by J. Templ over 3 years ago

  • Description updated (diff)

#3 Updated by J. Templ over 3 years ago

  • Status changed from New to Closed

Also available in: Atom PDF