You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Odin: dev-2025-02
OS: Linux Mint 21.3, Linux 6.8.0-52-generic
CPU: AMD Ryzen 5 7600X 6-Core Processor
RAM: 63481 MiB
Backend: LLVM 14.0.0
test.odin
package test
import"core:fmt"
main :: proc() {
x: f32 = 3.0 / 12.0
fmt.printfln("3 / 12 = %.2f", x)
}
Expected Behavior
The code should compile and run with the following being printed to stdout:
3 / 12 = 0.25
Current Behavior
After running odin run test.odin -file -target-features:soft-float, the compiler crashes. The file test.o is created, but it has a file size of 0. Similarly, executing odin build test.odin -file -target-features:soft-float results in a compiler crash.
Executing odin run test.odin -file, however, results in the expected behavior.
Failure Information (for bugs)
This is the output (likely due to a buffer overflow):
Context
System Info:
test.odin
Expected Behavior
The code should compile and run with the following being printed to stdout:
Current Behavior
After running
odin run test.odin -file -target-features:soft-float
, the compiler crashes. The filetest.o
is created, but it has a file size of 0. Similarly, executingodin build test.odin -file -target-features:soft-float
results in a compiler crash.Executing
odin run test.odin -file
, however, results in the expected behavior.Failure Information (for bugs)
This is the output (likely due to a buffer overflow):
Failure Logs
The text was updated successfully, but these errors were encountered: