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 generic new-type structs #4188

Closed
brendanzab opened this issue Dec 14, 2012 · 1 comment
Closed

ICE with generic new-type structs #4188

brendanzab opened this issue Dec 14, 2012 · 1 comment
Assignees
Labels
A-codegen Area: Code generation A-typesystem Area: The type system I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@brendanzab
Copy link
Member

struct Foo<T>(T);

fn main() {
    let _ = Foo(42);
}
$ RUST_LOG=rustc=1,::rt::backtrace rustc --out-dir . src/test.rs
rust: task failed at 'unknown node type in type_use', /usr/local/src/rust/src/librustc/middle/trans/type_use.rs:139
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
rust: task failed at 'explicit failure', /usr/local/src/rust/src/librustc/rustc.rc:483
rust: domain main @0x7fd7fa00bc10 root task failed
rust: task failed at 'killed', /usr/local/src/rust/src/libcore/task/mod.rs:630
@ghost ghost assigned pcwalton Dec 14, 2012
@pcwalton
Copy link
Contributor

Fixed in incoming

erickt pushed a commit to erickt/rust that referenced this issue Dec 16, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-codegen Area: Code generation A-typesystem Area: The type system I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

2 participants