jtempl / ofront

Oberon-2 to C translator
http://www.software-templ.com/shareware.html
43 stars 9 forks source link

compiler trap with anonymous base type of a dynamic array #32

Closed jtempl closed 7 years ago

jtempl commented 7 years ago

The following code leads to a compiler trap when compiling the NEW statement.

MODULE Hello; VAR code : POINTER TO ARRAY OF RECORD label : POINTER TO RECORD END; END; BEGIN NEW(code, 666); END Hello.

jtempl commented 7 years ago

fixed by calling OfrontOPC.Andent instead of Ident for the type name parameter of _NEWARR.