Skip to content

internal exception: Expected tuple as RHS #152

Description

@dddejan
contract C {
    function f() external view {}
	function test(address a) external view returns (bool status) {
		// This used to incorrectly raise an error about violating the view mutability.
		(status,) = a.staticcall.gas(42)("");
		this.f.gas(42)();
	}
}
solc-verify internal exception: Expected tuple as RHS
Details:
/root/project/libsolidity/boogie/AssignHelper.cpp(92): Throw in function static void dev::solidity::AssignHelper::makeTupleAssign(dev::solidity::AssignHelper::AssignParam, dev::solidity::AssignHelper::AssignParam, const dev::solidity::ASTNode*, dev::solidity::BoogieContext&, dev::solidity::AssignHelper::AssignResult&)
Dynamic exception type: boost::exception_detail::clone_impl<langutil::InternalCompilerError>
std::exception::what: Expected tuple as RHS
[dev::tag_comment*] = Expected tuple as RHS

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions