rustc llvm assertion #5690

doy opened this Issue Apr 3, 2013 · 1 comment

2 participants

doy commented Apr 3, 2013

Given a crate that looks like this:

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

mod bar;
mod baz;
mod baz;
enum quux {}

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

I get this output:

$ rustc
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

Obsolete; named extern mods are gone.

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