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

Const generic parameters in struct definitions ICE #59340

Closed
varkor opened this issue Mar 21, 2019 · 0 comments
Closed

Const generic parameters in struct definitions ICE #59340

varkor opened this issue Mar 21, 2019 · 0 comments
Assignees
Labels
A-const-generics Area: const generics (parameters and arguments) I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@varkor
Copy link
Member

varkor commented Mar 21, 2019

Minimised test case (from #44580 (comment)):

#![feature(const_generics)]

struct S<const C: u8>(C);

caused by:

for rib in &ribs[1..] {

@varkor varkor added the A-const-generics Area: const generics (parameters and arguments) label Mar 21, 2019
@varkor varkor self-assigned this Mar 21, 2019
@Centril Centril added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Mar 21, 2019
kennytm added a commit to kennytm/rust that referenced this issue Mar 24, 2019
…trochenkov

Fix ICE with const generic param in struct

Fixes rust-lang#59340.

r? @petrochenkov
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) ❄️
Projects
None yet
Development

No branches or pull requests

2 participants