Odin icon indicating copy to clipboard operation
Odin copied to clipboard

LLVM ERROR: Invalid size request on a scalable vector.

Open prescientmoon opened this issue 4 months ago • 0 comments

Running odin report yields the following output:

	Odin:    dev-2025-05
	OS:      NixOS 25.05 (Warbler), Linux 6.12.30
	CPU:     AMD Ryzen 7 8840HS w/ Radeon 780M Graphics     
	RAM:     15232 MiB
	Backend: LLVM 18.1.8

Consider the following program:

package repro

import "core:fmt"

A2 :: struct {
	f: [2]f32,
	t: [2]f32,
}

B2 :: struct {
	using a: A2,
}

V: f32 : 3.0

main :: proc() {
	fmt.println(B2{f = V, t = -V})
}

Compilation fails about 50% of the time. When it does, it prints the following error:

LLVM ERROR: Invalid size request on a scalable vector.

@ayuran on Discord has also confirmed being able to reproduce this bug.

prescientmoon avatar Jun 02 '25 21:06 prescientmoon