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

Clang failure on tuple assignment #51

Open
mskvortsov opened this issue Dec 2, 2019 · 0 comments
Open

Clang failure on tuple assignment #51

mskvortsov opened this issue Dec 2, 2019 · 0 comments

Comments

@mskvortsov
Copy link
Collaborator

struct __attribute__((tvm_tuple)) St {
  int value;
  __tvm_slice slice;
};

void foo(__tvm_slice slice, struct St *st)
{
  *st = __builtin_tvm_ldu(slice, 64);
}
test.cc:8:7: error: no viable overloaded '='
  *st = __builtin_tvm_ldu(slice, 64);
  ~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
test.cc:1:35: note: candidate function (the implicit copy assignment operator) not viable: no known conversion from '__tvm_literal_struct_WiTs'
      (aka '__tvm_literal_struct_WiTs_Tag') to 'const St' for 1st argument
struct __attribute__((tvm_tuple)) St {
                                  ^
test.cc:1:35: note: candidate function (the implicit move assignment operator) not viable: no known conversion from '__tvm_literal_struct_WiTs'
      (aka '__tvm_literal_struct_WiTs_Tag') to 'St' for 1st argument
struct __attribute__((tvm_tuple)) St {
                                  ^
1 error generated.
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

1 participant