Re: [PATCH] libstdc++: Fix compare_three_way for constexpr and Clang

2021-10-13 Thread Paul Keir via Gcc-patches
I'd like to cancel the request to apply that patch. At the time I had actually assumed that Clang was at fault, but your comment made me pause. I'll submit a bug report as you suggest. We can reconsider the patch in future once that bug is resolved. From

Re: [PATCH] libstdc++: Fix compare_three_way for constexpr and Clang

2021-10-11 Thread Paul Keir via Gcc-patches
*ping* From: Paul Keir Sent: 03 September 2021 11:31 To: gcc-patches@gcc.gnu.org Cc: libstd...@gcc.gnu.org Subject: Re: [PATCH] libstdc++: Fix compare_three_way for constexpr and Clang *ping* From: Paul Keir Sent

Re: [PATCH] libstdc++: Fix compare_three_way for constexpr and Clang

2021-09-03 Thread Paul Keir via Gcc-patches
*ping* From: Paul Keir Sent: 20 August 2021 21:17 To: gcc-patches@gcc.gnu.org Cc: libstd...@gcc.gnu.org Subject: [PATCH] libstdc++: Fix compare_three_way for constexpr and Clang Hi, The current compare_three_way implementation makes provision for constan

[PATCH] libstdc++: Fix compare_three_way for constexpr and Clang

2021-08-20 Thread Paul Keir via Gcc-patches
Hi, The current compare_three_way implementation makes provision for constant evaluation contexts (avoiding reinterpret_cast etc.), but the approach fails with Clang; when it compares two const volatile void pointers: "comparison between unequal pointers to void has unspecified result". I inclu