Skip to content

Unused move causes a crash #3878

Closed
Closed
@jruderman

Description

@jruderman
fn main()
{
    let y = ~1;
    move y;
}

a.out(43383,0x10065f000) malloc:
*** error for object 0x7ffed14144d0: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions