Skip to content

Compiler segfault when coercing variant to any-union #5215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Airtz opened this issue May 25, 2025 · 0 comments
Open

Compiler segfault when coercing variant to any-union #5215

Airtz opened this issue May 25, 2025 · 0 comments

Comments

@Airtz
Copy link

Airtz commented May 25, 2025

Context

Odin:    dev-2025-04-nightly:d9f990d
OS:      Windows 10 Professional (version: 22H2), build 19045.5487
CPU:     AMD Ryzen 7 6800H with Radeon Graphics
RAM:     15612 MiB
Backend: LLVM 20.1.0

Expected Behavior

Compile error disallowing any as an union variant.

Current Behavior

Compiler segfault.

Failure Information

Steps to Reproduce

package main

U :: union {any}

main :: proc() {
    u: U = 1
}

Failure Logs

Program terminated with signal: SIGSEGV
Compiler returned: 139
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant