Created
April 21, 2017 11:52
-
-
Save paulperegud/351ac17c5d7bdde02b37828416821257 to your computer and use it in GitHub Desktop.
solc-0.4.10.bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ls | |
LibContract.sol MainContract.sol | |
$ cat LibContract.sol | |
pragma solidity ^0.4.10; | |
contract LibContract { | |
uint256 public constant varA = 2; | |
uint256 public constant varB = varA; | |
function LibContract() { | |
} | |
} | |
$ cat MainContract.sol | |
pragma solidity ^0.4.10; | |
import "./LibContract.sol"; | |
contract MainContract { | |
function MainContract() { | |
} | |
} | |
$ solc --combined-json abi,bin,bin-runtime,devdoc,metadata,userdoc LibContract.sol MainContract.sol | |
Internal compiler error during compilation: | |
/build/solc-a0HVAb/solc-0.4.10/libsolidity/analysis/PostTypeChecker.cpp(51): Throw in function virtual bool dev::solidity::PostTypeChecker::visit(const dev::solidity::ContractDefinition&) | |
Dynamic exception type: boost::exception_detail::clone_impl<dev::solidity::InternalCompilerError> | |
std::exception::what: std::exception | |
[dev::tag_comment*] = |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment