Skip to content

Crash if LHS is invalidated during RHS evaluation #543

@vtereshkov

Description

@vtereshkov

In assignments:

var p: ^int

fn foo(): int {
    p = null
    return 666
}

fn main() {
    p = new(int, 42)
    p^ = foo()                // Crash!
    printf("%llv\n", p)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions