Skip to content

ICE / LLVM ERROR with tuple structure match #14308

Closed
@alxgnon

Description

@alxgnon
$ rustc --version
rustc 0.11.0-pre-nightly (6291955 2014-05-19 23:41:20 -0700)
host: x86_64-apple-darwin

Input

struct A(int);

pub fn main() {
    match A(0) {
        A(..) => 0,
    };
}

Output

Basic Block in function '_ZN4main20h2e73f07be5542c69jaa4v0.0E' does not have terminator!
label %entry-block
LLVM ERROR: Broken function found, compilation aborted!

Input

struct A(int);

pub fn main() {
    match A(0) {
        A(0) => 1,
        A(..) => 0,
    };
}

Output

llvm_err.rs:6:9: 6:14 error: internal compiler error: expected an identifier pattern but found p: pat(21: A(..))
llvm_err.rs:6         A(..) => 0,
                      ^~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions