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

CompilerPanic when raising uint256 to 0 or 1 #2984

Closed
charles-cooper opened this issue Jul 25, 2022 · 0 comments · Fixed by #2983
Closed

CompilerPanic when raising uint256 to 0 or 1 #2984

charles-cooper opened this issue Jul 25, 2022 · 0 comments · Fixed by #2983

Comments

@charles-cooper
Copy link
Member

Version Information

  • vyper Version (output of vyper --version): be2c59a
  • Python Version (output of python --version): 3.8.10

What's your issue about?

the following results in compiler panic due to the bounds check overflowing at compile time

@external
def foo() -> uint256:
  x: uint256 = 0
  return x ** 1
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

Successfully merging a pull request may close this issue.

1 participant