Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

CompilerPanic for convert on empty(Bytes[X]) #4224

Open
trocher opened this issue Sep 4, 2024 · 0 comments
Open

CompilerPanic for convert on empty(Bytes[X]) #4224

trocher opened this issue Sep 4, 2024 · 0 comments

Comments

@trocher
Copy link
Contributor

trocher commented Sep 4, 2024

Version Information

  • vyper Version (output of vyper --version): 0.4.0+commit.e9db8d9f
  • OS: osx
  • Python Version (output of python --version): 3.11.4

What's your issue about?

The compiler panics when compiling convert(empty(Bytes[X]))

POC

@external
def foo() -> uint256:
    x: uint256 = convert(empty(Bytes[32]), uint256)
    return x
vyper.exceptions.CompilerPanic: tried to modify non-pointer type

  contract "foo:6", function "foo", line 6:17 
       5 def foo() -> uint256:
  ---> 6     x: uint256 = convert(empty(Bytes[32]), uint256)
  ------------------------^
       7     return x


This is an unhandled internal compiler error. Please create an issue on Github to notify the developers!
https://github.com/vyperlang/vyper/issues/new?template=bug.md
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant