Methods cannot be called
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.
(from redmine: issue id 106, created on 2021-01-02 by root)
- Uploads: