This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compiling GOLD with GCC 7 fails with compiler errors


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]