GCC 8 20180204 prodces unexpected ambiguous overload error

Jonathan Wakely jwakely.gcc@gmail.com
Thu Feb 8 13:58:00 GMT 2018


I've reported it as https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84283



On 8 February 2018 at 13:46, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
> On 8 February 2018 at 10:58, Bert Wesarg wrote:
>> Dear all,
>>
>> I encounter a compile error when using GCC 8 20180204 with a simple
>> C++ program which worked before. Even with GCC 8 20170923. I would
>> like to understand, why this does not compile anymore, and how to fix
>> it.
>
> This is due to a change in G++'s overload resolution. I'm not sure if
> the change is correct or a bug. We discussed it in
> https://bugzilla.redhat.com/show_bug.cgi?id=1542254 and didn't reach a
> conclusion yet.
>
> I can easily make a change to the std::map code to make it work, so
> I'll do that if it turns out the G++ change is correct.
>
> Thanks for letting us know about this.



More information about the Gcc-help mailing list