-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Description
Following code causing ICE.
foo.rs
pub static fun: extern fn() = foo;
fn foo() {
println("Foo");
}
main.rs
extern mod foo;
fn main() {
(foo::fun)();
}
$ rustc --lib foo.rs
warning: missing crate link meta `name`, using `foo` as default
warning: missing crate link meta `vers`, using `0.0` as default
$ rustc main.rs -L .
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=1,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
If foo::foo
is declared as pub
, the code compiles successfully.
Metadata
Metadata
Assignees
Labels
I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
gifnksm commentedon May 14, 2013
This may be related to #4202.
thomaslee commentedon May 20, 2013
It feels relatively unlikely to me that this relates directly to #4202, but I'll try to take a look at this later in the week -- unless of course you're keen to fix it yourself @gifnksm :)
bblum commentedon Jul 26, 2013
The error message of the ICE is "'lookup_item: id not found: 11', /home/rustbuild/src/rust-buildbot/slave/snap3-linux/build/src/librustc/metadata/decoder.rs:86".
But, this appears to work fine with my stage1 compiler, despite reproducing on stage0. Reopen if this comes back, I guess?
Auto merge of rust-lang#6464 - ahouts:make-needless_update-ignore-non…