diff options
author | moneroexample <moneroexample@tuta.io> | 2016-05-17 13:27:39 +0800 |
---|---|---|
committer | moneroexample <moneroexample@tuta.io> | 2016-05-17 13:27:39 +0800 |
commit | 9d237fbfdc1e3dff7b725987a3716341cce8556a (patch) | |
tree | aed659de7c824e87d704b9c809ada9ba6194f852 | |
parent | 4b445b898e49c79f4f0ad80aa656ee33ca5b0ebc (diff) | |
download | dexon-solidity-9d237fbfdc1e3dff7b725987a3716341cce8556a.tar.gz dexon-solidity-9d237fbfdc1e3dff7b725987a3716341cce8556a.tar.zst dexon-solidity-9d237fbfdc1e3dff7b725987a3716341cce8556a.zip |
fix: error: call of overloaded ‘list(int, <brace-enclosed initializer list>)’
Issue: https://github.com/ethereum/solidity/issues/574
Compilation of webthree-umbrella on Arch with gcc 6.1 results in the following
error:
/home/mwo/webthree-umbrella/solidity/libsolidity/analysis/NameAndTypeResolver.cpp:299:51: error: call of overloaded ‘list(int, <brace-enclosed initializer list>)’ is ambiguous
list<list<ContractDefinition const*>> input(1, {});
This can be overcome by explicitly specifying initial value, for example:
list<list<ContractDefinition const*>> input(1, list<ContractDefinition const*>{})
-rw-r--r-- | libsolidity/analysis/NameAndTypeResolver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/analysis/NameAndTypeResolver.cpp b/libsolidity/analysis/NameAndTypeResolver.cpp index 5e407383..26d38cfe 100644 --- a/libsolidity/analysis/NameAndTypeResolver.cpp +++ b/libsolidity/analysis/NameAndTypeResolver.cpp @@ -296,7 +296,7 @@ void NameAndTypeResolver::linearizeBaseContracts(ContractDefinition& _contract) { // order in the lists is from derived to base // list of lists to linearize, the last element is the list of direct bases - list<list<ContractDefinition const*>> input(1, {}); + list<list<ContractDefinition const*>> input(1, list<ContractDefinition const*>{}); for (ASTPointer<InheritanceSpecifier> const& baseSpecifier: _contract.baseContracts()) { UserDefinedTypeName const& baseName = baseSpecifier->name(); |