This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [v3 PATCH] Fix an access problem in variant.
- From: Jonathan Wakely <jwakely at redhat dot com>
- To: Ville Voutilainen <ville dot voutilainen at gmail dot com>
- Cc: libstdc++ <libstdc++ at gcc dot gnu dot org>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 8 Feb 2017 14:03:47 +0000
- Subject: Re: [v3 PATCH] Fix an access problem in variant.
- Authentication-results: sourceware.org; auth=none
- References: <CAFk2RUY+car5uBT5o-sAJEGrPtWWJKXqcUs7MN=BQfJ3ysTj1A@mail.gmail.com> <CAFk2RUZ44kfOP15DcJnUL_06Biubx_u-00rkUxO9Q_QtF=XuYw@mail.gmail.com> <20170208135644.GZ3093@redhat.com>
On 08/02/17 13:56 +0000, Jonathan Wakely wrote:
Definitely a clang bug, see
http://melpon.org/wandbox/permlink/PkbNSpvjPrLh8rov
If we remove the nested namespace we see that the friend declaration
is declaring a second, unrelated function, and so we get an ambiguity:
http://melpon.org/wandbox/permlink/wvmzgAzpLp5pOf86
It's https://llvm.org/bugs/show_bug.cgi?id=31852