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

Backend assertion failure #1837

Open
ftphikari opened this issue Jun 8, 2022 · 1 comment
Open

Backend assertion failure #1837

ftphikari opened this issue Jun 8, 2022 · 1 comment
Labels

Comments

@ftphikari
Copy link
Contributor

Context

    Odin: dev-2022-06:5d4291d9
    OS:   Windows 10 Unknown Edition (0000007d) (version: 21H2), build 19044.1706
    CPU:  Intel(R) Core(TM)2 Duo CPU     P8600  @ 2.40GHz
    RAM:  8086 MiB

Code

package bug9

import "core:fmt"

foo :: proc(a: [][2]string) {
	fmt.println(a)
}

main :: proc() {
	foo({"All Files"})
}

Expected

A proper error message.

Got

odin\src\llvm_backend_const.cpp(102): Assertion Failure: lb_sizeof(dst) == lb_sizeof(src) [2 x %..string] vs %..string = type { i8*, i64 }

@github-actions github-actions bot added the stale label Oct 6, 2022
@github-actions github-actions bot closed this as completed Nov 6, 2022
@ftphikari
Copy link
Contributor Author

Not closed, bug is still there.

@Kelimion Kelimion reopened this Nov 6, 2022
@github-actions github-actions bot removed the stale label Nov 7, 2022
@github-actions github-actions bot added the stale label Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants