Skip to content

Misscompilation with initialization of ArrayList #208

Description

@gDator

zig-sqlite commit

946d77c

Zig version

0.16.0

Steps to reproduce

Im not entirely sure how to reproduce the error. But on some function calls of DynamicStatement.all(..) result in the compilation error (s. picture below).
In my opinion the array should be iniialized like this:

 var rows: std.ArrayList(Type) = .empty;

Image

Expected behaviour

All function calls of DynamicStatement.all(...) should not compile, because ArrayList has no default values for its fields.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions