We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
using
#soa
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Operating System & Odin Version:
Odin: dev-2023-06: OS: Windows 11 Professional (version: 22H2), build 22621.1702 CPU: Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz RAM: 9938 MiB
package bug3 Thing :: struct { a: int, using B: struct { b: uint, c: rawptr, } } main :: proc() { things := make_soa(#soa[dynamic]Thing, 1) thing := &things[0] c := thing.c }
Odin\src\llvm_backend_utility.cpp(1064): Assertion Failure: `is_type_pointer(s.type)`
If b and c are swapped places in the struct definition then I get:
b
c
Odin\src\llvm_backend_utility.cpp(1138): Panic: TODO(bill): struct_gep type: rawptr, 1
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Context
Operating System & Odin Version:
Code
Current Behavior
If
b
andc
are swapped places in the struct definition then I get:The text was updated successfully, but these errors were encountered: