https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101592

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Marek Polacek
<mpola...@gcc.gnu.org>:

https://gcc.gnu.org/g:adee9b8a80cc985c7a0ede592fe07b131303343a

commit r11-8949-gadee9b8a80cc985c7a0ede592fe07b131303343a
Author: Marek Polacek <pola...@redhat.com>
Date:   Wed Sep 1 16:47:44 2021 -0400

    c++: Fix ICE with nullptr comparison (GCC 11) [PR101592]

    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.

            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.

    Co-authored-by: Jakub Jelinek <ja...@redhat.com>

Reply via email to