Skip to content

debug/zig-0.9.1/src/stage1/ir.app:5423 thread 14900 panic: assertion failed. #12057

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

Closed
speed2exe opened this issue Jul 9, 2022 · 1 comment
Closed
Labels
bug Observed behavior contradicts documented or intended behavior stage1 The process of building from source via WebAssembly and the C backend.
Milestone

Comments

@speed2exe
Copy link

Zig Version

0.9.1

Steps to Reproduce

file: block_compile_test.zig

const std = @import("std");

test "comptime expression" {
    comptime {
        std.log.warn("hello in comptime", .{});
    }
}

command: zig test block_compile_test.zig

Expected Behavior

output containing: hello in comptime

Actual Behavior

when analyzing /usr/lib/zig/std/log.zig:133:38 in compiler source at /u/usr/src/debug/zig-0.9.1/src/stage1/ir.cpp:5423: thread 14900 panic: assertion failed/usr/src/debug/zig-0.9.1/src/stage1/ir.cpp:5423: thread 14900 panic: assertion failed. 
This is a bug in the Zig compiler.
Uable to dump stack trace: debug info stripped
Aborted (core dumped)
@speed2exe speed2exe added the bug Observed behavior contradicts documented or intended behavior label Jul 9, 2022
@Vexu Vexu added the stage1 The process of building from source via WebAssembly and the C backend. label Jul 9, 2022
@Vexu Vexu added this to the 0.12.0 milestone Jul 9, 2022
wooster0 added a commit to wooster0/zig that referenced this issue Dec 15, 2022
wooster0 added a commit to wooster0/zig that referenced this issue Dec 15, 2022
wooster0 added a commit to wooster0/zig that referenced this issue Dec 15, 2022
wooster0 added a commit to wooster0/zig that referenced this issue Dec 15, 2022
wooster0 added a commit to wooster0/zig that referenced this issue Dec 15, 2022
wooster0 added a commit to wooster0/zig that referenced this issue Dec 15, 2022
wooster0 added a commit to wooster0/zig that referenced this issue Dec 16, 2022
@Vexu
Copy link
Member

Vexu commented Jan 19, 2023

Duplicate of #11513

@Vexu Vexu marked this as a duplicate of #11513 Jan 19, 2023
@Vexu Vexu closed this as completed Jan 19, 2023
@andrewrk andrewrk modified the milestones: 0.13.0, 0.11.0 Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Observed behavior contradicts documented or intended behavior stage1 The process of building from source via WebAssembly and the C backend.
Projects
None yet
Development

No branches or pull requests

3 participants