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

LLVM backend assertion failure when casting string literal to the 'any' type #4724

Open
speechfreedoms opened this issue Jan 20, 2025 · 0 comments

Comments

@speechfreedoms
Copy link

minimal example

package test
main :: proc() {
	s := any("Hellope!")
}

exits with

PATH:\odin\src\llvm_backend_const.cpp(716): Assertion Failure: 'is_type_string(original_type)'

compiler command

odin run . or odin build .

system info

Odin 2025-01 (source built: 19-JAN-2025)
Windows
LLVM 18.1.8

suggested labels

bug
llvm-backend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant