Open ritzdorf opened 3 months ago
vyper --version
In case of nested computation the compiler can incorrectly emit an OverflowException.
OverflowException
This was not an issue in 0.3.10.
@external def foo(): x: uint256 = (10**3)**2
fails to compile with:
OverflowException: Base is too large, calculation will always overflow
It is not limited to nested exponentiation, this also fails:
@external def foo(): x: uint256 = (100*2)**3
Version Information
vyper --version
OR linkable commit hash vyperlang/vyper@commitish): 0.4.0rc3+commit.80708e6dIssue description
In case of nested computation the compiler can incorrectly emit an
OverflowException
.This was not an issue in 0.3.10.
POC
fails to compile with:
It is not limited to nested exponentiation, this also fails: