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

panic: quaternion64 + quaternion64 #4282

Open
tymbaca opened this issue Sep 21, 2024 · 0 comments
Open

panic: quaternion64 + quaternion64 #4282

tymbaca opened this issue Sep 21, 2024 · 0 comments

Comments

@tymbaca
Copy link

tymbaca commented Sep 21, 2024

Context

        Odin:    dev-2024-09-nightly:dd1f151
        OS:      macOS Sonoma 14.3.1 (build: 23D2057, kernel: 23.3.0)
        CPU:     Apple M3
        RAM:     16384 MiB
        Backend: LLVM 18.1.8

Expected Behavior

Expected that quaternion64 + quaternion64 will operate ok

Current Behavior

Compilation panics (see log below)

Failure Information (for bugs)

Steps to Reproduce

Just try to run this code:

package main

main :: proc() {
	q1: quaternion64
	q2: quaternion64

	q3 := q1 + q2
}

This also panics:

main :: proc() {
	q1: quaternion64
	q1.x = 1
	q1.y = 2
	q1.z = 3
	q1.w = 4

	q2: quaternion64
	q2.x = 1
	q2.y = 2
	q2.z = 3
	q2.w = 4

	q3 := q1 + q2
}

But if I use quaternion128 or quaternion256 it will not panic.

Failure Logs

main.main
lb_emit_conv: src -> dst
Not Identical ^f16 != f16
Not Identical ^f16 != f16
Not Identical 11975b770 != 102d9ab58
Not Identical 11975b770 != 102d9ab58
src/llvm_backend_expr.cpp(2478): Panic: Invalid type conversion: '^f16' to 'f16' for procedure 'main.main'
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