Skip to content

Array as asm output ICEs LLVM #13368

Closed
Closed
@kmcallister

Description

@kmcallister
#![feature(asm)]

fn main() {
    let arr: [u8; 16];
    unsafe { asm!("" : "=m"(arr)); }
    println!("{:?}", arr);
}
$ rustc --version
rustc 1.0.0-dev (896cb36ec 2015-01-14 12:19:58 +0000)

$ rustc foo.rs
Unknown type!
UNREACHABLE executed at /home/keegan/rust-master/src/llvm/lib/IR/ValueTypes.cpp:251!
Aborted

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-inline-assemblyArea: Inline assembly (`asm!(…)`)C-bugCategory: This is a bug.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️I-crashIssue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.P-mediumMedium priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.glacierICE tracked in rust-lang/glacier.requires-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