Skip to content
New issue

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

cannot print u0 or use u0 in var args #1538

Closed
kristate opened this issue Sep 17, 2018 · 1 comment
Closed

cannot print u0 or use u0 in var args #1538

kristate opened this issue Sep 17, 2018 · 1 comment
Milestone

Comments

@kristate
Copy link
Contributor

kristate commented Sep 17, 2018

const std = @import("std");
test "print u0" {
  var uz: u0 = 0;
  std.debug.warn("uz: {}", uz);
}
/Users/cfkk/Source/zig2/build/lib/zig/std/debug/index.zig:46:23: error: compiler bug: var args can't handle void. https://github.com/ziglang/zig/issues/557
    stderr.print(fmt, args) catch return;
                      ^
/Users/cfkk/Source/zig2/build/u0.zig:4:17: note: called from here
  std.debug.warn("uz: {}", uz);
                ^

related: #557 #1530

@andrewrk andrewrk added this to the 0.4.0 milestone Sep 17, 2018
@andrewrk andrewrk modified the milestones: 0.4.0, 0.5.0 Feb 10, 2019
@andrewrk andrewrk modified the milestones: 0.5.0, 0.6.0 Aug 21, 2019
@andrewrk
Copy link
Member

andrewrk commented Dec 9, 2019

duplicate of #557

@andrewrk andrewrk closed this as completed Dec 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants