Closed
Description
Hi.
I got an error on the contract compilation (contract was simplified for viewers)
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) { return 1; }
}
contract Parent {
string public name;
constructor(string _name) public {
name = _name;
}
}
contract Test is Parent {
using SafeMath for uint256;
constructor() public Parent("Name") {
uint256(1).mul(1);
}
}
Error from console:
Internal compiler error during compilation:
/tmp/solidity-20180516-60301-1g8nbi1/solidity_0.4.23/libsolidity/interface/CompilerStack.cpp(732): Throw in function void dev::solidity::CompilerStack::compileContract(const dev::solidity::ContractDefinition &, map<const dev::solidity::ContractDefinition *, const eth::Assembly *> &)
Dynamic exception type: boost::exception_detail::clone_impl<dev::solidity::InternalCompilerError>
std::exception::what: Assembly exception for bytecode
[dev::tag_comment*] = Assembly exception for bytecode
Test system:
Mac OS X: 16.7.0 Darwin Kernel Version 16.7.0: Mon Nov 13 21:56:25 PST 2017; root:xnu-3789.72.11~1/RELEASE_X86_64 x86_64
clang -v
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Found CUDA installation: /usr/local/cuda, version 8.0
Metadata
Metadata
Assignees
Labels
No labels