Skip to content

Named labels in asm!() blocks cause crashes on Mac OSX #16378

Closed
@DaGenix

Description

@DaGenix

The following code crashes on Mac OSX:

#![feature(asm)]

fn main() {
    unsafe {
        asm!(" test:") 
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-inline-assemblyArea: Inline assembly (`asm!(…)`)C-bugCategory: This is a bug.I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.O-macosOperating system: macOSrequires-nightlyThis issue requires a nightly compiler in some way.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions