8000 make(#soa[dynamic]) doesn't set allocator, but make([dynamic]) does · Issue #4509 · odin-lang/Odin · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
make(#soa[dynamic]) doesn't set allocator, but make([dynamic]) does #4509
Closed
@gco-bmx

Description

@gco-bmx

Expected Behavior

soa_tokens := make(#soa[dynamic]Token)
tokens := make([dynamic]Token)

I'd expect that in both the above cases that, the dynamic arrays would have there allocator set, or both would not

Current Behavior

from debugger
soa_token allocator is not set
tokens allocator is set

  • Operating System & Odin Version:

      Odin:    dev-2024-11:e607cbe93
      OS:      Windows 10 Professional (version: 22H2), build 19045.5131
      CPU:     Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
      RAM:     32685 MiB
      Backend: LLVM 18.1.8
    

Metadata

Metadata

Assignees

No one assigned

    Labels

    replicatedWe were able to replicate the bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0