Context
Odin: dev-2025-12-nightly
OS: Ubuntu 25.10, Linux 6.17.0-8-generic
CPU: Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz
RAM: 31953 MiB
Backend: LLVM 20.1.8
Expected Behavior
Compiler should not crash and print error. These are two different types: [2] string and [] [2] string.
Current Behavior
Compiler crashes.
Failure Information (for bugs)
Running program with odin run . gives
src/llvm_backend_const.cpp(93): Assertion Failure: `lb_sizeof(dst) == lb_sizeof(src)` [2 x %..string] vs %..string = type { ptr, i64 }
Illegal instruction (core dumped)
Steps to Reproduce
package main
main :: proc () {
foo({ "1", "2" })
}
foo :: proc (pairs: [] [2] string) {
}