rustc llvm assertion #5690

Closed
doy opened this Issue Apr 3, 2013 · 1 comment

2 participants

@doy
Contributor
doy commented Apr 3, 2013

Given a crate that looks like this:

// foo.rs
#[link(name = "foo", vers = "0")];
#[crate_type = "lib"];

mod bar;
mod baz;
// bar.rs
mod baz;
// baz.rs
enum quux {}

extern mod blorg {
    fn thing () -> *quux;
}

I get this output:

$ rustc foo.rs
rustc: /home/doy/coding/src/rust/src/llvm/include/llvm/Support/Casting.h:197: typename llvm::cast_retty<To, From>::ret_type llvm::cast(const Y&) [with X = llvm::Function; Y = llvm::Value*; typename llvm::cast_retty<To, From>::ret_type = llvm::Function*]: Assertion `isa<X>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
zsh: abort (core dumped)  rustc foo.rs
@catamorphism
Contributor

Obsolete; named extern mods are gone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment