Open bg-thompson opened 1 year ago
just hit the same issue
code
package bug
import "core:fmt"
VAL: [3]u8 : {1, 2, 3}
arr: [69][3]u8 = VAL
main :: proc() {
fmt.println(arr)
}
output
LLVM Error:
Global variable initializer type does not match global variable type!
ptr @bug.arr
report
Odin: dev-2024-04:a14f0d8f5
OS: Ubuntu 22.04.4 LTS, Linux 6.5.0-27-generic
CPU: Intel(R) Core(TM) i5-8265U CPU @ 1.60GHz
RAM: 7631 MiB
Backend: LLVM 17.0.6
Context
Failure Information (for bugs)
Attempting to compile the following code
produces the following LLVM error:
yet when the second-last line in the code is commented, the code compiles.