odin-lang / Odin

Odin Programming Language
https://odin-lang.org
BSD 3-Clause "New" or "Revised" License
6.13k stars 551 forks source link

src/llvm_backend_const.cpp(412): Assertion Failure: `sz >= max_count` max_count: 7, sz: 4, written: 0, type int #3856

Open laytan opened 5 days ago

laytan commented 5 days ago

On 32 bit targets (wasm32, arm32) the following code raises the assertion failure in the title of this issue:

package main

import "core:math"

main :: proc() {
    x := math.round_f64(1)
}