Skip to content

'Free regions in optimized MIR' ICE with const generics #100360

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
b-naber opened this issue Aug 10, 2022 · 1 comment · Fixed by #100438
Closed

'Free regions in optimized MIR' ICE with const generics #100360

b-naber opened this issue Aug 10, 2022 · 1 comment · Fixed by #100438
Assignees
Labels
C-bug Category: This is a bug. 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

@b-naber
Copy link
Contributor

b-naber commented Aug 10, 2022

The following throws a 'Free regions in optimized MIR' ICE on master:

Code

#![feature(adt_const_params)]
#![feature(generic_const_exprs)]

fn foo<const B: &'static bool>(arg: &'static bool) -> bool {
  B == arg 
}

fn main() {
  foo::<{&true}>(&false);
}

backtrace.txt

@b-naber b-naber added C-bug Category: This is a bug. 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 Aug 10, 2022
@matthiaskrgr
Copy link
Member

could be related to #89851

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
C-bug Category: This is a bug. 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

Successfully merging a pull request may close this issue.

3 participants