Skip to content

Compiler segfault when using anonymous recursive struct in Maybe #5713

@JakobBruenker

Description

@JakobBruenker

Context

    Odin:    dev-2025-08-nightly:accdd7c
    OS:      Windows 11 Professional (version: 23H2), build 22631.5909
    CPU:     12th Gen Intel(R) Core(TM) i7-12700H
    RAM:     32492 MiB
    Backend: LLVM 20.1.0

Expected Behavior

package foo

Parent_Stack :: Maybe(struct {
    foo: Parent_Stack
})

This file results in a segfault.

Current Behavior

It should show a descriptive error instead of a segfault.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions