Bug #42

fixing LONGINT division TRAP

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

Status:ClosedStart date:04/27/2015
Priority:NormalDue date:
Assignee:J. Templ% Done:

0%

Category:-
Target version:1.7
Forum topic:

Description

The following module leads to a compiler TRAP:

MODULE TestLongintDIV;
TYPE Object = POINTER TO RECORD int: INTEGER END ;
VAR u: Object; L: LONGINT;  
BEGIN NEW(u); u.int :=1;
  L := LONG(u.int) DIV u.int (* compiler TRAP 0 in DevCPC486.CheckAv *)
END TestLongintDIV.

A proposal based on contributions by luowy and Aubrey McIntosh for fixing this bug exists in CPC 1.7 rc5 (http://blackboxframework.org/archive/2011/3612.html)

Reported by Robert, 2011-12-18 (http://blackboxframework.org/archive/2011/3621.html).
Refers to CPC 1.7 rc5 change list number 18.

Associated revisions

Revision 6f9414d0
Added by J. Templ over 3 years ago

fixing LONGINT division TRAP. Refs: #42.
Changes as proposed by luowy, Aubrey McIntosh, and Ivan Denisov in CPC 1.7 rc5.

Signed-off-by: Josef Templ <>

Revision ececb67e
Added by J. Templ over 3 years ago

Merge pull request #29 from BlackBoxCenter/issue-#42

fixing LONGINT division TRAP. Refs: #42.

History

#1 Updated by J. Templ over 3 years ago

  • Description updated (diff)

#2 Updated by J. Templ over 3 years ago

  • Status changed from New to Closed

Also available in: Atom PDF