From: Jakub Jelinek <jakub@redhat.com>
To: Marek Polacek <polacek@redhat.com>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>, Jason Merrill <jason@redhat.com>
Subject: Re: [PATCH] c++: Fix ICE with nullptr comparison (GCC 11) [PR101592]
Date: Wed, 1 Sep 2021 23:21:41 +0200 [thread overview]
Message-ID: <20210901212141.GO920497@tucnak> (raw)
In-Reply-To: <20210901211809.94066-1-polacek@redhat.com>
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
prev parent reply other threads:[~2021-09-01 21:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-01 21:18 Marek Polacek
2021-09-01 21:21 ` Jakub Jelinek [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210901212141.GO920497@tucnak \
--to=jakub@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=jason@redhat.com \
--cc=polacek@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).