Skip to content

ICE: Implement discriminant const qualify #40012

Closed
@clarfonthey

Description

@clarfonthey

Currently, the compiler will ICE if you have a match on an enum within a const function. If this isn't implemented, it should at least warn the user instead of showing an ICE.

Example here: https://is.gd/r4d3MB

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) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions