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

Compiler crash when using array repetition in comptime unrolled loop #741

tgschultz opened this Issue Feb 3, 2018 · 1 comment


None yet
2 participants

tgschultz commented Feb 3, 2018

const warn = @import("std").debug.warn;

test "array repetition in comptime unrolled loop" {
    comptime var i = 0;
    inline while(i < 2) : (i += 1) {
        const str = "str|"**i;

Probably related to #740

@andrewrk andrewrk added the bug label Feb 3, 2018

@andrewrk andrewrk added this to the 0.2.0 milestone Feb 3, 2018


This comment has been minimized.


andrewrk commented Mar 9, 2018

This is actually the same problem as #740. See the explanation there. I'll leave this open just in case and we'll have both test cases in the test suite once this problem is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment