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: Wrong temporary lifetime computation #11854

Closed
flaper87 opened this issue Jan 27, 2014 · 4 comments · Fixed by #11776
Closed

ICE: Wrong temporary lifetime computation #11854

flaper87 opened this issue Jan 27, 2014 · 4 comments · Fixed by #11776
Labels
A-lifetimes Area: Lifetimes / regions E-hard Call for participation: Hard difficulty. Experience needed to fix: A lot. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@flaper87
Copy link
Contributor

Nested modules with static items cause this error:

error: internal compiler error: unexpected failure
This message reflects a bug in the Rust compiler. 
We would appreciate a bug report: http://static.rust-lang.org/doc/master/complement-bugreport.html
note: the compiler hit an unexpected failure path. this is a bug
task 'rustc' failed at 'No enclosing scope for id 17', /home/flaper87/workspace/personal/rust/src/librustc/middle/region.rs:145

Output for: rustc test.rs --pretty expanded,identified

use std::prelude::*;
extern mod std = "std#0.10-pre";
extern mod green = "green#0.10-pre";
extern mod rustuv = "rustuv#0.10-pre";


fn main() {
    mod t {
        use std::prelude::*;
        enum E { V = (1 /* 10 */), A = (0 /* 12 */), }
        /*
        9
        */
        static C: E = (V /* 17 */);
        /*
        14
        */
    }
    /*
    7
    */
} /* block 19 */ /* 5 */
@flaper87
Copy link
Contributor Author

cc @nikomatsakis

@alexcrichton
Copy link
Member

To put issues on the 1.0 issue milestone, they need to go through the nomination process. This means that they get an I-nominated tag and then we discuss them in a weekly meeting to assign an appropriate milestone/tag to it.

For now, I'm removing the milestone.

@flaper87
Copy link
Contributor Author

@alexcrichton thanks!

@flaper87
Copy link
Contributor Author

Adding the bt: https://gist.github.com/FlaPer87/8657638/raw/40958d5460a95c6e4a50c1614aaeee6cd80ea179/gistfile1.txt

I just discussed this with @nikomatsakis on IRC and the fix for it. I'll assign this bug to me and submit a patch.

@ghost ghost assigned flaper87 Jan 27, 2014
flaper87 added a commit to flaper87/rust that referenced this issue Jan 29, 2014
@bors bors closed this as completed in f84b729 Jan 30, 2014
@flaper87 flaper87 removed their assignment Jun 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lifetimes Area: Lifetimes / regions E-hard Call for participation: Hard difficulty. Experience needed to fix: A lot. I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants