Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

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

Closed

Description

@b-naber

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

Activity

  1. added
    C-bug
    I-ICE
    T-compiler
    on Aug 10, 2022
  2. matthiaskrgr commented on Aug 10, 2022

    @matthiaskrgr
    Member

    could be related to #89851

  3. added a commit that references this issue on Aug 13, 2022
    9ab54df
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

C-bugI-ICET-compiler

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions