Skip to content

Assert Failed assignment lhs contains slice #101

@huangjd

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions