This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GCC 8 20180204 prodces unexpected ambiguous overload error
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Bert Wesarg <bert dot wesarg at googlemail dot com>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Thu, 8 Feb 2018 13:46:50 +0000
- Subject: Re: GCC 8 20180204 prodces unexpected ambiguous overload error
- Authentication-results: sourceware.org; auth=none
- References: <CAKPyHN1JvnwtDJdAHWtj=ff-hne4NpO_skqf+qdM6_bhfr47-A@mail.gmail.com>
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.