Skip to content

LLVM assertion failed: "Invalid GetElementPtrInst indices for type!" #7153

Closed
@honzasp

Description

@honzasp

Hi,

rustc fails to compile this program:

trait TheTrait { }
struct TheStruct(~TheTrait);

fn new() -> TheStruct {
  fail!()
}

fn main() {
  ~new();
}

with

$ rustc --version
rustc 0.6 (a198aad 2013-06-13 03:25:11 -0700)
host: i686-unknown-linux-gnu

$ rustc usage.rs
rustc: (path to my rust build)/src/llvm/include/llvm/IR/Instructions.h:704: llvm::Type* llvm::checkGEPType(llvm::Type*): Assertion `Ty && "Invalid GetElementPtrInst indices for type!"' failed.
Aborted (core dumped)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions