We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
vyper --version
When having x ** y folded, if x == 0 or x == 1, the compiler will crash.
x ** y
x == 0 or x == 1
See:
vyper/vyper/ast/nodes.py
Lines 1105 to 1106 in 6d4c09c
@external def foo()->uint256: return 1**2
ZeroDivisionError: float division by zero
@external def foo()->uint256: return 0**2
ValueError: math domain error
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version Information
vyper --version
OR linkable commit hash vyperlang/vyper@commitish): 0.4.0rc3+commit.6d4c09cdIssue description
When having
x ** y
folded, ifx == 0 or x == 1
, the compiler will crash.See:
vyper/vyper/ast/nodes.py
Lines 1105 to 1106 in 6d4c09c
POC
The text was updated successfully, but these errors were encountered: