This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Compiling GOLD with GCC 7 fails with compiler errors
- From: Cary Coutant <ccoutant at gmail dot com>
- To: Alan Modra <amodra at gmail dot com>
- Cc: Tobias Burnus <tobias dot burnus at physik dot fu-berlin dot de>, Binutils <binutils at sourceware dot org>
- Date: Thu, 9 Jun 2016 11:48:43 -0700
- Subject: Re: Compiling GOLD with GCC 7 fails with compiler errors
- Authentication-results: sourceware.org; auth=none
- References: <20160608083200 dot GB19567 at physik dot fu-berlin dot de> <20160609005134 dot GA3899 at bubble dot grove dot modra dot org>
On Wed, Jun 8, 2016 at 5:51 PM, Alan Modra <amodra@gmail.com> wrote:
> On Wed, Jun 08, 2016 at 10:32:00AM +0200, Tobias Burnus wrote:
>> ../../gold/mips.cc:6146:8: error: conversion from
>>
>> âstd::unordered_set<{anonymous}::Mips_symbol<64>*, {anonymous}::Mips_symbol_hash<64>, std::equal_to<{anonymous}::Mips_symbol<64>*>, std::allocator<{anonymous}::Mips_symbol<64>*> >::iterator {aka std::__detail::_Node_iterator<{anonymous}::Mips_symbol<64>*, true, true>}â
>>
>> to non-scalar type
>>
>> âstd::unordered_set<{anonymous}::Mips_symbol<64>*, std::hash<{anonymous}::Mips_symbol<64>*>, std::equal_to<{anonymous}::Mips_symbol<64>*>, std::allocator<{anonymous}::Mips_symbol<64>*> >::iterator {aka std::__detail::_Node_iterator<{anonymous}::Mips_symbol<64>*, true, false>}â
>>
>> requested
>> ---------------------------------------------------------------
>>
>> I have not yet investigated since which binutils or GCC change it fails
>> and whose fault it is.
>
> I can't reproduce this with gcc rev 237240, but I wonder if using the
> Global_got_entry_set typedef fixes the problem for you?
I don't quite understand why some versions of GCC accept this with the
missing template parameter, but I've committed the patch now. I hope
that fixes your problem.
(This would have been a nice place for "auto".)
-cary