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 Const Generic expression inside turbofish syntax #60798

Closed
imbrem opened this issue May 13, 2019 · 2 comments
Closed

ICE with Const Generic expression inside turbofish syntax #60798

imbrem opened this issue May 13, 2019 · 2 comments
Assignees
Labels
A-const-generics Area: const generics (parameters and arguments) I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@imbrem
Copy link
Contributor

imbrem commented May 13, 2019

I found an ICE with the following:

#![feature(const_generics)]

struct Foo<const N : usize>();

fn main() {
    let _ = Foo::<3>();
}

Here's a link to the Playground

I was poking around in collect.rs, where the error seems to be from, and it looks like some cases in a match statement are not being handled, but I'm not familiar enough with the code-base to see how to fix this.

@Centril Centril added A-const-generics Area: const generics (parameters and arguments) I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels May 13, 2019
@varkor
Copy link
Member

varkor commented May 13, 2019

This should be fixed by #60710.

@varkor
Copy link
Member

varkor commented May 14, 2019

Actually, this is a duplicate of #60818 (I'll close this issue simply because the other has more comments now).

@varkor varkor closed this as completed May 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-const-generics Area: const generics (parameters and arguments) I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants