rochus-keller / Oberon

Oberon parser, code model & browser, compiler and IDE with debugger, and an implementation of the Oberon+ programming language
GNU General Public License v2.0
464 stars 30 forks source link

Wrong assembly for some array of record #15

Closed rochus-keller closed 2 years ago

rochus-keller commented 2 years ago

There seems to be an issue in Pelib, observable e.g. in Gen4Tests T3VariableDeclarations. Mono reacts with a runtime exception. The issue is not present when generating IL and creating the assembly with ILASM.

rochus-keller commented 2 years ago

1d array of record work fine; nd array of record cause exception with n > 1; regardless of record or pointer to record; only Pelib affected.

did some statistics over all of my demo projects including Blackbox mini: 1d array of records is very rare, nd array of records never seen besides T3VariableDeclarations.

rochus-keller commented 2 years ago

Fixed in IDE 0.9.39, commit c87ed2aadc626d.