Skip to content

Codegen bug for enum autocast in a type declaration  #15445

Open
@straight-shoota

Description

@straight-shoota

A type declaration with an enum autocast causes a codegen error:

enum Foo
  Bar
end

y : Foo = :bar # Module validation failed: Load operand must be a pointer.
               #  %30 = load %"(Foo | Symbol)", i32 0, align 8, !dbg !105

Related: #12063

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind:bugA bug in the code. Does not apply to documentation, specs, etc.topic:compiler:codegen

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions