You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Odin: dev-2024-10
OS: Arch Linux, Linux 6.6.52-1-lts
CPU: Intel(R) Celeron(R) N4020 CPU @ 1.10GHz
RAM: 3471 MiB
Backend: LLVM 18.1.6
Expected Behavior
This should either be a valid code or yield an informative compiler error.
package what
Foo :: union {
int, f32, rune,
}
main :: proc(){
x : Foo = int(100)
y : int = x.?
}
Current Behavior
The LLVM backend crashes with a panic.
Failure Information (for bugs)
NOT FOUND lb_type_info_index:
uint
@ index 131
max count: 6
Found:
Foo
any
rune
f32
u64
union {int, f32, rune}
src/llvm_backend_type.cpp(17): Panic: NOT FOUND
Steps to Reproduce
Create new .odin file and paste the code above
Just do odin run <TheFile>.odin -file
The text was updated successfully, but these errors were encountered:
Context
Expected Behavior
This should either be a valid code or yield an informative compiler error.
Current Behavior
The LLVM backend crashes with a
panic
.Failure Information (for bugs)
Steps to Reproduce
.odin
file and paste the code aboveodin run <TheFile>.odin -file
The text was updated successfully, but these errors were encountered: