Skip to content

bug: self-referential types crash the VM #2008

Closed
@deelawn

Description

@deelawn

Self-referential types that are prohibited in go can cause the VM to crash. I think we need to check somewhere in the preprocessor that for this. Here is the example to reproduce the issue:

package main

type S struct {
        T S
}

func main() {
        var a, b S
        println(a == b)
}

Metadata

Metadata

Assignees

Labels

📦 🤖 gnovmIssues or PRs gnovm related🐞 bugSomething isn't working

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions