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
While doing some testing with this bug, which seems to only occur on linux, I've been able to replicate the bug on the following configuration:
Odin: dev-2024-10:af9ae4897
OS: macOS Sequoia 15 (build: 24A335, kernel: 24.0.0)
CPU: Apple M2 Max
RAM: 32768 MiB
Backend: LLVM 18.1.8
[END OF EDIT]
Expected Behavior
Should throw an error complaining that I haven't specified the length of the dynamic array, like so:
Error: Parameter 'len' of type 'int' is missing in procedure call
list := make([dynamic]u8, cap = 2, allocator = context.allocato ...
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ...
This is the behavior when you don't return the dynamic array as a slice.
Context
Odin: dev-2024-10
OS: Arch Linux, Linux 6.11.3-arch1-1
CPU: Intel(R) Core(TM) i9-14900HX
RAM: 15693 MiB
Backend: LLVM 18.1.8
EDIT:
While doing some testing with this bug, which seems to only occur on linux, I've been able to replicate the bug on the following configuration:
Odin: dev-2024-10:af9ae4897
OS: macOS Sequoia 15 (build: 24A335, kernel: 24.0.0)
CPU: Apple M2 Max
RAM: 32768 MiB
Backend: LLVM 18.1.8
[END OF EDIT]
Expected Behavior
Should throw an error complaining that I haven't specified the length of the dynamic array, like so:
This is the behavior when you don't return the dynamic array as a slice.
Current Behavior
Compiler segfaults.
Failure Information (for bugs)
Here's an lldb backtrace on my machine:
The error occurs here.
Steps to Reproduce
Here's a minimal program that produces the bug when I run
odin build .
on my machine.Failure Logs
Note: I've been loving Odin so far! Thank you to all the contributors for helping to build such a great language.
The text was updated successfully, but these errors were encountered: