From 9d237fbfdc1e3dff7b725987a3716341cce8556a Mon Sep 17 00:00:00 2001 From: moneroexample Date: Tue, 17 May 2016 13:27:39 +0800 Subject: =?UTF-8?q?fix:=20error:=20call=20of=20overloaded=20=E2=80=98list(?= =?UTF-8?q?int,=20)=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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, )’ is ambiguous list> input(1, {}); This can be overcome by explicitly specifying initial value, for example: list> input(1, list{}) --- libsolidity/analysis/NameAndTypeResolver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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> input(1, {}); + list> input(1, list{}); for (ASTPointer const& baseSpecifier: _contract.baseContracts()) { UserDefinedTypeName const& baseName = baseSpecifier->name(); -- cgit v1.2.3