[Bug c++/101592] ICE in wide_int_to_tree, at tree.c:1427

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Sep 1 21:34:31 GMT 2021


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
<mpolacek@gcc.gnu.org>:

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

commit r11-8949-gadee9b8a80cc985c7a0ede592fe07b131303343a
Author: Marek Polacek <polacek@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 <jakub@redhat.com>


More information about the Gcc-bugs mailing list