On Wed, Sep 01, 2021 at 05:18:09PM -0400, Marek Polacek wrote:
> On trunk, PR101592 was fixed by r12-2537, but that change shouldn't be
> backported to GCC 11.  In the PR Jakub suggested this fix, so here it
> is, after the usual testing.
> 
> Bootstrapped/regtested on x86_64-pc-linux-gnu, ok for 11?
> 
>       PR c++/101592
> 
> gcc/ChangeLog:
> 
>       * fold-const.c (make_range_step): Return NULL_TREE for NULLPTR_TYPE.
> 
> gcc/testsuite/ChangeLog:
> 
>       * g++.dg/warn/Wlogical-op-3.C: New test.

Ok, thanks.

        Jakub

Reply via email to