Project

General

Profile

Bug #106

Methods cannot be called

Added by Anton Dmitriev 10 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-

Description

Compiler backend traps when generating a call to a POINTER TO RECORD's method defined as follows:

MODULE M;

TYPE T = POINTER TO RECORD END;
PROCEDURE (t: T) P (VAR b: UNSIGNED8) ; BEGIN END P;
PROCEDURE Fail; 
VAR b: UNSIGNED8; t: T;
BEGIN t.P(b) (* compiler backend traps at this procedure designator *)
END Fail;

END M.

Attached is a trap report (for my actual module), but the error is easily reproducible.

FoxTrap (32 KB) FoxTrap Anton Dmitriev, 02 January 2021 16:35

Also available in: Atom PDF