Skip to content

LLVM assert instantiating mutually recursive struct #3909

@brson

Description

@brson
struct TestNode {
    data: @TestData
}

struct TestData {
    parent: Option<TestNode>
}

fn main() {
    let node = TestNode {
        data: @TestData {
            parent: None
        }
    };
}
rustc: /home/brian/dev/rust/src/llvm/lib/Target/TargetData.cpp:468: uint64_t llvm::TargetData::getTypeSizeInBits(llvm::Type*) const: Assertion `Ty->isSized() && "Cannot getTypeInfo() on a type that is unsized!"' failed.


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions