Skip to content

Internal compiler error - "failed to find block with tag 12" #6873

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

Closed
indirect opened this issue Jun 1, 2013 · 2 comments
Closed

Internal compiler error - "failed to find block with tag 12" #6873

indirect opened this issue Jun 1, 2013 · 2 comments
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@indirect
Copy link
Contributor

indirect commented Jun 1, 2013

Hi there... I'm trying to figure out how to build my own crates and use them, and I ran into this compiler error while compiling a two-line rust file. I created a gist with the files needed to reproduce, and a script that will trigger the bug: https://gist.github.com/indirect/5689005. I'm running off of incoming, compiled yesterday. Here's the output from the compile attempt:

$ rustc test.rs -L .
rust: ~"failed to find block with tag 12"
rust: task failed at 'explicit failure', /private/tmp/rust-8w9r/src/libextra/ebml.rs:202
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', /private/tmp/rust-8w9r/src/librustc/rustc.rc:400
rust: domain main @0x7fae5a808410 root task failed
@huonw
Copy link
Member

huonw commented Jul 23, 2013

Looks like the same bug as #6698, which has been fixed. Running the test case (correctly) gives:

test-6873.rs:4:10: 4:33 error: unresolved name `FromBase64::from_base64`.
test-6873.rs:4   println(FromBase64::from_base64(~"it works"));
                         ^~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to previous error

Closing.

@huonw huonw closed this as completed Jul 23, 2013
@eerden
Copy link

eerden commented Oct 18, 2013

This gives the same error:

fn main(){
    let output_dir = from_str("/tmp/delete_me").unwrap();
    std::os::make_dir(&output_dir, 0b111_111_111);
    ::std::rt::io::support::PathLike::path_as_str(output_dir);
}

flip1995 pushed a commit to flip1995/rust that referenced this issue Mar 11, 2021
Refactor casts lint

Ref: rust-lang#6724

Changes:
1. Separate the `casts` group from the `types` group.
2. Reorganize the lints of the `casts` group into their own modules.

Notes:
1. I didn't `fix` rust-lang#6874 in order to maintain this PR as small as possible.

---
changelog: none
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

3 participants