Bug #126

Compiler TRAP for SYSTEM.VAL(LONGINT, intreg)

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

Status:ClosedStart date:08/25/2016
Priority:NormalDue date:
Assignee:J. Templ% Done:

80%

Category:-
Target version:1.7
Forum topic:

Description

Compiling for example the expression

SYSTEM.VAL(LONGINT, y * 2)
with y: INTEGER leads to a compiler TRAP. The second register required for a LONGINT register pair is undefined in this case. If it happens to be a large value it leads to a TRAP when testing the register for membership in a SET of registers.

Reported by Josef Templ, 2016-08-23.

Associated revisions

Revision bc063f07
Added by J. Templ almost 3 years ago

Compiler TRAP for SYSTEM.VAL fixed. Refs: #126.
Code generation must be stopped after detecting an error for SYSTEM.VAL in Convert.
Error number changed to 111 because it has nothing to do with the value of the operand.

Signed-off-by: Josef Templ <>

Revision 72c007bb
Added by J. Templ almost 3 years ago

separate error message introduced for SYSTEM.VAL limitations. Refs: #126.
new error number 261: "unsupported mode of second argument of SYSTEM.VAL"

Signed-off-by: Josef Templ <>

Revision 6b81012c
Added by J. Templ almost 3 years ago

separate error message introduced for SYSTEM.VAL limitations. Refs: #126.
new error number 261: "unsupported mode or size of second argument of SYSTEM.VAL"

Signed-off-by: Josef Templ <>

Revision b89e4457
Added by I. Denisov almost 3 years ago

Compiler TRAP for SYSTEM.VAL was fixed by LuoWy. The bug was found by Josef Templ. Refs: #126.

Revision 022762e1
Added by I. Denisov almost 3 years ago

Operation and call were made forbidden as argument for VAL. Refs: #126.

Revision 5653209f
Added by J. Templ almost 3 years ago

RETURN turned into an ELSE in Convert. Refs: #126.

Signed-off-by: Josef Templ <>

History

#1 Updated by I. Denisov almost 3 years ago

  • Description updated (diff)
  • % Done changed from 0 to 80

#2 Updated by I. Denisov almost 3 years ago

  • Status changed from New to In Progress

#3 Updated by D. G. Danforth almost 3 years ago

  • Status changed from In Progress to Closed

Also available in: Atom PDF