Odin icon indicating copy to clipboard operation
Odin copied to clipboard

Compiler crashes when trying to assign i32 to Maybe(any)

Open laughsuggestion opened this issue 1 year ago • 2 comments

Code:

package main

foo : Maybe(any)

main :: proc() {
	bar : i32 = 1234
	foo = bar
}

Build Output:

[1] 92297 segmentation fault odin build .

laughsuggestion avatar Jul 28 '24 02:07 laughsuggestion

Crashes in gb_internal void add_type_info_type_internal(CheckerContext *c, Type *t) with a CheckerContext of NULL, which comes from internal_check_is_assignable_to.

Kelimion avatar Jul 28 '24 02:07 Kelimion

Forgot the bug label

flysand7 avatar Jul 28 '24 03:07 flysand7