vishapoberon / compiler

vishap oberon compiler
http://oberon.vishap.am
GNU General Public License v3.0
186 stars 25 forks source link

segfault when declare cyclic type #60

Closed ghost closed 6 years ago

ghost commented 6 years ago

I write my own oberon compiler and check some behaviors in another compilers. In voc cyclic types checked not fully. :)

MODULE Test;

TYPE
        MyArr = POINTER TO ARRAY OF MyArr;

END Test.
$ voc Test.Mod -m
Segmentation fault (core dumped)
norayr commented 6 years ago

very interesting, thank you for reporting.

i'll allocate time for this in nearest days.

norayr commented 6 years ago

https://github.com/vishaps/voc/commit/511186f0a42727b8439ca8e986de8063e6342f9d

forgot to close the issue. (: