Learning zig: stack and dangling pointers

It appears that the behavior you observed is a current compiler bug.

1 Like