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

ICE with exporting a type and impl from a crate #2414

Closed
erickt opened this issue May 19, 2012 · 1 comment
Closed

ICE with exporting a type and impl from a crate #2414

erickt opened this issue May 19, 2012 · 1 comment
Labels
A-linkage Area: linking into static, shared libraries and binaries A-typesystem Area: The type system I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Milestone

Comments

@erickt
Copy link
Contributor

erickt commented May 19, 2012

Here's the test case. First file a.rs is:

#[link(name = "a", vers = "0.1")];
#[crate_type = "lib"];

type t1 = uint;
impl t2 for str { }

Second b.rs is:


#[link(name = "b", vers = "0.1")];
#[crate_type = "lib"];

use a;

import a::t2;
export t2;

This errors out with:

../run-rustc -L . a.rs
warning: no debug symbols in executable (-arch x86_64)
../run-rustc -L . b.rs
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=0,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues

Other than the metadata, if anything else is removed the program compiles fine.

@eholk
Copy link
Contributor

eholk commented May 21, 2012

I wonder if this is related to the resolv bugs that cause #2383...

@ghost ghost assigned catamorphism Jun 7, 2012
bors added a commit to rust-lang-ci/rust that referenced this issue Sep 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linkage Area: linking into static, shared libraries and binaries A-typesystem Area: The type system I-crash Issue: The compiler crashes (SIGSEGV, SIGABRT, etc). Use I-ICE instead when the compiler panics.
Projects
None yet
Development

No branches or pull requests

3 participants