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-12:ad99d20d2
OS: Windows 11 Home Basic (version: 23H2), build 22631.4602
CPU: AMD Ryzen 7 6800HS with Radeon Graphics
RAM: 15608 MiB
Backend: LLVM 18.1.8
Issue was originally reported by juice.thekid on the Discord
Expected Behavior
No complier crashes
Current Behavior
Complier asserts with src\llvm_backend_general.cpp(995): Assertion Failure: are_types_identical(ca, core_type(value.type)) typeid != ^Type_Info when initializing a file scope global any with a value.
LLVM error with below when initializing a static any with a value.
LLVM Error:
Global variable initializer type does not match global variable type!
ptr @main.main-.a-36764
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Copy Paste
Uncomment one a
Run
Profit???
Repeat 2-4.
package main
import"core:fmt"// global any - complier assertion// a: any = 9
main :: proc() {
// static any - llvm error// @static a: any = 9
fmt.println(a)
}
The text was updated successfully, but these errors were encountered:
Context
Issue was originally reported by juice.thekid on the Discord
Expected Behavior
No complier crashes
Current Behavior
Complier asserts with
src\llvm_backend_general.cpp(995): Assertion Failure: are_types_identical(ca, core_type(value.type)) typeid != ^Type_Info
when initializing a file scope global any with a value.Odin/src/llvm_backend_general.cpp
Lines 993 to 996 in ad99d20
LLVM error with below when initializing a static any with a value.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
a
The text was updated successfully, but these errors were encountered: