SRI-CSL / solidity

This is solc-verify, a modular verifier for Solidity.
https://github.com/SRI-CSL/solidity/blob/boogie/SOLC-VERIFY-README.md
GNU General Public License v3.0
50 stars 14 forks source link

Enum definition not found internal exception #166

Closed nelaturuk closed 3 years ago

nelaturuk commented 3 years ago

pragma solidity >=0.5.0;

contract Test { enum B { A }

struct AA {
    B s;
}

AA private _aa;

function test() public view {
    B b = _aa.s;
}

}

======= Converting to Boogie IVL =======

======= ./solci-verify-experiments/tests/test.sol ======= solc-verify internal exception: Enum definition not found Details: /solidity/libsolidity/boogie/ASTBoogieExpressionConverter.cpp(1381): Throw in function virtual bool dev::solidity::ASTBoogieExpressionConverter::visit(const dev::solidity::MemberAccess&) Dynamic exception type: boost::exception_detail::clone_impl std::exception::what: Enum definition not found [dev::tag_comment*] = Enum definition not found

dddejan commented 3 years ago

Thanks for reporting. Should be fixed. @nelaturuk please check and close if it works.

nelaturuk commented 3 years ago

Thank you. The fix works.