-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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][compiler-v2] Move v2 compiler enum destruction via pattern matching is broken #14813
Labels
Comments
alnoki
changed the title
[Bug] Move v2 compiler enum destruction via pattern matching is broken
[Bug][compiler-v2] Move v2 compiler enum destruction via pattern matching is broken
Oct 1, 2024
This is actually a bug in the v2 compiler ability checker (which is then caught by the bytecode verifier which is run at end of compilation. The minimal repro is:
So no need to stop using enums. Thanks for reporting, we send out fix soon. |
wrwg
added a commit
that referenced
this issue
Oct 16, 2024
… displaying message in compiler pipeline. This also demonstrates the problem with bug #14813
wrwg
added a commit
that referenced
this issue
Oct 16, 2024
…ameters Closes #14813 The first commit here demonstrates the error and improves on how we display bytecode verification errors, the 2nd fixes the issue in the compiler.
16 tasks
wrwg
added a commit
that referenced
this issue
Oct 18, 2024
… displaying message in compiler pipeline. This also demonstrates the problem with bug #14813
wrwg
added a commit
that referenced
this issue
Oct 18, 2024
…ameters Closes #14813 The first commit here demonstrates the error and improves on how we display bytecode verification errors, the 2nd fixes the issue in the compiler.
github-project-automation
bot
moved this from 🆕 New
to ✅ Done
in Move Language and Runtime
Oct 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Background
@brmataptos @fEst1ck @georgemitenkov @rahxephon89 @runtian-zhou @vineethk @wrwg
I'm trying to do enum destuction via pattern matching but it is
throwing a compiler bug:
Specifically, the problematic code is the simple function
contains
(seecode listing at bottom), because the module compiles just fine without this
function.
I am unable to use the fully-qualified syntax:
Nor can I use the
is
keyword:match compare, so is there something else I can do in the interim while this
gets patched?
Code listing
The text was updated successfully, but these errors were encountered: