Skip to content

const-eval ICE: allocation missing in dead_alloc_map #55287

@pnkfelix

Description

@pnkfelix

Spawned off of @oli-obk 's example on #55223:

play

#![feature(const_let)] union Foo<'a> { y: &'a (), long_live_the_unit: &'static (), } const FOO: &() = { let y = (); unsafe { Foo { y: &y }.long_live_the_unit } }; fn main() { }

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-const-evalArea: Constant evaluation, covers all const contexts (static, const fn, ...)I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions