Skip to content

Compiler crash at polymorphic_assign_index because Type **gt_ is null #5227

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

Closed
Hamza12700 opened this issue May 27, 2025 · 0 comments
Closed
Labels
cannot-replicate Unable to Replicate

Comments

@Hamza12700
Copy link

Context

The compiler crashed when (I assume) doing simply math operations or type conversion.

Operating-System: Linux archlinux 6.14.7
Odin version: odin version dev-2025-04:d9f990d42
odin report output:

Odin:    dev-2025-04:d9f990d42
        OS:      Arch Linux, Linux 6.14.7-arch2-1
        CPU:     11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
        RAM:     7579 MiB
        Backend: LLVM 19.1.7

Failure Information (for bugs)

For some reason the below code crashed the compiler. It's just doing simple math stuff (adding number together):

button :: proc(layout: ^Layout, size: [2]f32, color: [4]u8) -> bool

button(&layout, {30, 100}, { 230, 41, 55, 255 }) // <- This failed
button(&layout, {30, 20}, { 230, 41, 55, 255 })

I tried to reproduce the bug but it's not happening anymore.

Failure Logs

SegFaulted, attempted to deference a null pointer in polymorphic_assign_index because the Type **gt_ is null.

Image

Image

@Kelimion Kelimion added the cannot-replicate Unable to Replicate label May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cannot-replicate Unable to Replicate
Projects
None yet
Development

No branches or pull requests

2 participants