public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: Jason Merrill <jason@redhat.com>
Cc: gcc-patches@gcc.gnu.org
Subject: Patch ping (was Re: [C++ PATCH] Fix ICE with offsetof-like initializer (PR c++/88410))
Date: Mon, 17 Dec 2018 18:58:00 -0000	[thread overview]
Message-ID: <20181217185850.GD23305@tucnak> (raw)
In-Reply-To: <20181209110506.GV12380@tucnak>

Hi!

On Sun, Dec 09, 2018 at 12:05:06PM +0100, Jakub Jelinek wrote:
> The following testcase ICEs starting with my change to move offsetof-like
> expression handling from the parsing to cp_fold - if the base expression
> is not INTEGER_CST, but a constant VAR_DECL initialized with INTEGER_CST,
> then we don't fold it as offsetof-like expression and as we use recursive
> cp_fold only on functions, not initializers, we don't fold that VAR_DECL in
> there into INTEGER_CST and the middle-end ICEs on it trying to fold it.
> 
> Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for
> trunk?
> 
> 2018-12-09  Jakub Jelinek  <jakub@redhat.com>
> 
> 	PR c++/88410
> 	* cp-gimplify.c (cp_fold) <case ADDR_EXPR>: For offsetof-like folding,
> 	call maybe_constant_value on val to see if it is INTEGER_CST.
> 
> 	* g++.dg/cpp0x/pr88410.C: New test.

I'd like to ping this patch.

Thanks.

	Jakub

  reply	other threads:[~2018-12-17 18:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-09 11:05 [C++ PATCH] Fix ICE with offsetof-like initializer (PR c++/88410) Jakub Jelinek
2018-12-17 18:58 ` Jakub Jelinek [this message]
2018-12-17 21:00 ` Jason Merrill

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=20181217185850.GD23305@tucnak \
    --to=jakub@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jason@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).