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
The compiler should display an appropriate error message instead of crashing.
Current Behavior
The compiler crashes with a null pointer assertion when compiling a program that uses a package alias defined in one file and referenced in another file's global scope.
package test
import "vendor:raylib"
rl :: raylib
main :: proc() {
}
package test
outside := rl.WHITE // this crashes
func :: proc() {
inside := rl.WHITE // but this is fine
}
It with the following error: D:\a\Odin\Odin\src\checker.cpp(4556): Assertion Failure: d != nullptr
The crash occurs most of the time, but occasionally the compilation succeeds. When compiled with -thread-count:1, it crashes 100% of the time.
The text was updated successfully, but these errors were encountered:
Context
Expected Behavior
The compiler should display an appropriate error message instead of crashing.
Current Behavior
The compiler crashes with a null pointer assertion when compiling a program that uses a package alias defined in one file and referenced in another file's global scope.
It with the following error:
D:\a\Odin\Odin\src\checker.cpp(4556): Assertion Failure: d != nullptr
The crash occurs most of the time, but occasionally the compilation succeeds. When compiled with
-thread-count:1
, it crashes 100% of the time.The text was updated successfully, but these errors were encountered: