Skip to content

ICE when attempting to use arithmetic expression as fixed vector length #4387

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
bstrie opened this issue Jan 8, 2013 · 5 comments
Closed
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@bstrie
Copy link
Contributor

bstrie commented Jan 8, 2013

ICEs:

fn main() {
    let foo = [0, ..2*4];
}
error: internal compiler error: no type for node 6: expr 2 (id=6) in fcx b72a7988
@catamorphism
Copy link
Contributor

Reproduced as of 373504 but not critical for 0.6. De-milestoning

@catamorphism
Copy link
Contributor

This actually seems to be fixed, adding the test case shortly

@luqmana
Copy link
Member

luqmana commented Mar 21, 2013

I'm pretty sure I added a test case when I fixed this in #5112.

@luqmana
Copy link
Member

luqmana commented Mar 21, 2013

Yep in run-pass/const-expr-in-vec-repeat.rs

@catamorphism
Copy link
Contributor

Well, I made a test case already, so one more test case can't hurt ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

3 participants