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

Assertion `!pred->arg(index) && "already set"' #67

Open
madmann91 opened this issue Feb 22, 2017 · 1 comment
Open

Assertion `!pred->arg(index) && "already set"' #67

madmann91 opened this issue Feb 22, 2017 · 1 comment
Assignees

Comments

@madmann91
Copy link
Contributor

The following code triggers the assertion (using impala and -emit-thorin):

struct Blob {
    done: fn () -> bool
}

fn test(next_blob: Blob) -> () {
    let next = |exit| {
        next_blob
    };

    let mut blob : Blob;
    while !blob.done() {
        blob = next(continue);
    }
}
@leissa leissa self-assigned this Feb 22, 2017
@leissa
Copy link
Member

leissa commented Feb 22, 2017

The problem ist that the continue continuation is passed as argument to next. Impala's emit doesn't handle this at the moment.

So actually, it's a bug in Impala.

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