Skip to content

Assert Failed assignment lhs contains slice #101

Description

@huangjd

Input

export func main()

var A : tensor[3,3](int);
var B : tensor[3,3](int);
var C : tensor[3,3](int);

A(:,:) = B(:,:) + C(:,:);

end

Error message

Please report it to http://issues.simit-lang.org
 Condition failed: isa<E>(e)
 Wrong Expr type (.tmpfree0,.tmpfree1 A(.tmpfree0,.tmpfree1))

Similar error occurs when lhs of assignment has slice indices.

For example:

export func main()

var A : tensor[3,3](int);
var B : tensor[3](int);
var C : tensor[3](int);

A(:,1) = B+C;

end

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions