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

[Bug][move-compiler-v2] *&mut {s.x} = causes STLOC_TYPE_MISMATCH_ERROR #14817

Open
zzjas opened this issue Oct 1, 2024 · 0 comments
Open

[Bug][move-compiler-v2] *&mut {s.x} = causes STLOC_TYPE_MISMATCH_ERROR #14817

zzjas opened this issue Oct 1, 2024 · 0 comments
Assignees
Labels

Comments

@zzjas
Copy link

zzjas commented Oct 1, 2024

🐛 Bug

//# publish
module 0xCAFE::Module0 {
    struct S {
        x: bool,
    }
    public fun f(): S {
        let s = S { x: false, };
        *&mut {s.x} = true;
        s
    }
}

V1 compiles fine. V2 gives:

bug: bytecode verification failed with unexpected status code `STLOC_TYPE_MISMATCH_ERROR`. This is a compiler bug, consider reporting it.
  ┌─ ~/debug_package/sources/MoveSmith.move:8:16
  │
8 │         *&mut {s.x} = true;
  │
@zzjas zzjas added the bug Something isn't working label Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants