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

ICE in solidity::frontend::TypeChecker::visit, Cannot declare variable with void (empty tuple) type. #8283

Closed
Changochen opened this issue Feb 10, 2020 · 0 comments · Fixed by #8313
Assignees
Labels
Milestone

Comments

@Changochen
Copy link

Description

Consider the following POC:

contract C {
    function f ( ) public {
        var i = ( ( 1 ( 3 ) + address ) , 2 ) ** 3 ;
    }
}

Run with solc --bin -o poc poc.sol and we got

Internal compiler error during compilation:
/home/yongheng/solidity_clean/libsolidity/analysis/TypeChecker.cpp(1118): Throw in function virtual bool solidity::frontend::TypeChecker::visit(const solidity::frontend::VariableDeclarationStatement &)
Dynamic exception type: boost::wrapexcept<solidity::langutil::InternalCompilerError>
std::exception::what: Cannot declare variable with void (empty tuple) type.
[solidity::util::tag_comment*] = Cannot declare variable with void (empty tuple) type.

Environment

  • Compiler version: Version: 0.6.3-develop.2020.2.10+commit.d033c2f7.Linux.clang
  • Target EVM version (as per compiler settings):
  • Framework/IDE (e.g. Truffle or Remix):
  • EVM execution environment / backend / blockchain client:
  • Operating system: Ubuntu 16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants