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

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

Closed
tgschultz opened this issue Feb 3, 2018 · 1 comment
Closed
Labels
bug Observed behavior contradicts documented or intended behavior
Milestone

Comments

@tgschultz
Copy link
Contributor

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 Observed behavior contradicts documented or intended behavior label Feb 3, 2018
@andrewrk andrewrk added this to the 0.2.0 milestone Feb 3, 2018
@andrewrk
Copy link
Member

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
Labels
bug Observed behavior contradicts documented or intended behavior
Projects
None yet
Development

No branches or pull requests

2 participants