Project

General

Profile

Actions

Bug #42

closed

fixing LONGINT division TRAP

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

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
04/27/2015
Due date:
% Done:

0%

Estimated time:

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.

Actions

Also available in: Atom PDF