Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
laughsuggestion opened this issue Jul 28, 2024 · 2 comments
Open

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

laughsuggestion opened this issue Jul 28, 2024 · 2 comments
Labels
bug frontend replicated We were able to replicate the bug. triaged Bug has been looked at.

Comments

@laughsuggestion
Copy link

Code:

package main

foo : Maybe(any)

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

Build Output:

[1] 92297 segmentation fault odin build .

@Kelimion Kelimion added triaged Bug has been looked at. replicated We were able to replicate the bug. labels Jul 28, 2024
@Kelimion
Copy link
Member

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.

@flysand7
Copy link
Contributor

Forgot the bug label

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug frontend replicated We were able to replicate the bug. triaged Bug has been looked at.
Projects
None yet
Development

No branches or pull requests

4 participants