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

internal exception: Expected tuple as RHS #152

Open
dddejan opened this issue Jul 24, 2020 · 0 comments
Open

internal exception: Expected tuple as RHS #152

dddejan opened this issue Jul 24, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@dddejan
Copy link
Member

dddejan commented Jul 24, 2020

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
@dddejan dddejan added the bug Something isn't working label Jul 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant