Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rustc llvm assertion #5690

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

rustc llvm assertion #5690

doy opened this issue Apr 3, 2013 · 1 comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@doy
Copy link
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
Copy link
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
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

2 participants