This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [v3 PATCH] PR libstdc++/78420
- From: Ville Voutilainen <ville dot voutilainen at gmail dot com>
- To: Tim Song <t dot canens dot cpp at gmail dot com>, Jason Merrill <jason at redhat 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: Sun, 22 Jan 2017 18:11:06 +0200
- Subject: Re: [v3 PATCH] PR libstdc++/78420
- Authentication-results: sourceware.org; auth=none
- References: <CAFk2RUZkFK6Fsraek-01GtwxAjbZvPM3DOUPhAxUfHwiRXd8LQ@mail.gmail.com> <CAPQZVxuUh7nG75sNYs06KnU6tWmyo9AOUyuV2GGNNkku5uG=jA@mail.gmail.com>
On 22 January 2017 at 17:57, Tim Song <t.canens.cpp@gmail.com> wrote:
> On Sun, Jan 22, 2017 at 10:42 AM, Ville Voutilainen
> <ville.voutilainen@gmail.com> wrote:
>> + _GLIBCXX14_CONSTEXPR
>> + bool
>> + operator()(_Tp* __x, _Tp* __y) const
>> + { return uintptr_t(__x) > uintptr_t(__y); }
>
> These reinterpret_casts can't possibly be constexpr.
Indeed. Jason, some front-end help in the form of an intrinsic, perhaps? :)