Project

General

Profile

Bug #41

anonymous type import problem

Added by Felix Friedrich 11 months ago. Updated 10 months ago.

Status:
In Progress
Priority:
Normal
Category:
Compiler

Description

The following code was reported to imply a module loading error by Zdenek Moravcik

MODULE module1;

TYPE

 C* = POINTER TO ARRAY OF RECORD
  d* : ANY;       (*! commenting out this field solves the error *)
 END;

 B* = RECORD
  c* : C;
 END;

 A* = RECORD
  b* : POINTER TO ARRAY OF B; 
 END;

END module1.

MODULE module2;

IMPORT m1:=module1;

VAR
 a : m1.A;
BEGIN
 NEW(a.b[0].c, 8);
END module2.

module2. cannot be loaded 

System.Free module1 module2 ~

History

#1 Updated by Felix Friedrich 11 months ago

  • Assignee set to Felix Friedrich

#2 Updated by Felix Friedrich 11 months ago

  • Status changed from New to Closed

#3 Updated by Felix Friedrich 11 months ago

  • Status changed from Closed to In Progress

I have closed the wrong issue, reopening this one

#4 Updated by Zdenek Moravcik 10 months ago

Hello Felix, any progress on this issue?

#5 Updated by Felix Friedrich 10 months ago

  • Category set to Compiler

Also available in: Atom PDF