Re: [PATCH] c++: Reject ordered comparison of null pointers [PR99701]

2021-07-17 Thread Jason Merrill via Gcc-patches
On 7/16/21 6:34 PM, Jakub Jelinek wrote: On Fri, Jul 16, 2021 at 05:36:13PM -0400, Marek Polacek via Gcc-patches wrote: When implementing DR 1512 in r11-467 I neglected to reject ordered comparison of two null pointers, like nullptr < nullptr. This patch fixes that omission. Bootstrapped/regte

Re: [PATCH] c++: Reject ordered comparison of null pointers [PR99701]

2021-07-16 Thread Jakub Jelinek via Gcc-patches
On Fri, Jul 16, 2021 at 05:36:13PM -0400, Marek Polacek via Gcc-patches wrote: > When implementing DR 1512 in r11-467 I neglected to reject ordered > comparison of two null pointers, like nullptr < nullptr. This patch > fixes that omission. > > Bootstrapped/regtested on x86_64-pc-linux-gnu, ok fo

[PATCH] c++: Reject ordered comparison of null pointers [PR99701]

2021-07-16 Thread Marek Polacek via Gcc-patches
When implementing DR 1512 in r11-467 I neglected to reject ordered comparison of two null pointers, like nullptr < nullptr. This patch fixes that omission. Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for trunk? DR 1512 PR c++/99701 gcc/cp/ChangeLog: * cp-gimplify.