Std.debug.print
crashes with max_depth overflow on vectors
#22376
Labels
bug
Observed behavior contradicts documented or intended behavior
standard library
This issue involves writing Zig code for the standard library.
Milestone
Zig Version
0.14.0-dev.2384+cbc05e0b1
Steps to Reproduce and Observed Behavior
On an empty project (
zig init
), with thismain.zig
code:Output
I believe it is because in
formatType
, the.vector
branch doesn't check that max_depth == 0.Expected Behavior
I expect output similar to
struct main.Struct{ .mat = main.Mat{ .values = { ... } } }
The text was updated successfully, but these errors were encountered: