rusty icon indicating copy to clipboard operation
rusty copied to clipboard

Stack overflow when declaring a struct with a member being a pointer to itself

Open mhasel opened this issue 1 year ago • 0 comments

When trying to compile the following

TYPE Node : STRUCT
    id      : DINT;
    child   : REF_TO Node;
    parent  : REF_TO Node;
END_STRUCT END_TYPE

the compiler will crash with a stack overflow.

A quick git bisect has shown this bug slipped in with commit 28b6b41

mhasel avatar Sep 03 '24 08:09 mhasel