public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/38503] [4.4 regression] warnings from -isystem headers strikes back.
Date: Fri, 23 Jan 2009 16:53:00 -0000	[thread overview]
Message-ID: <20090123165252.10033.qmail@sourceware.org> (raw)
In-Reply-To: <bug-38503-7667@http.gcc.gnu.org/bugzilla/>



------- Comment #12 from rguenth at gcc dot gnu dot org  2009-01-23 16:52 -------
this is placement-new related.

D.20941_8 = &ox

ox = { } no-tbaa-pruning
D.20941_8 = { ox }

alias warning for D.20941_8

After alias:

  ox.D.20531.m_initialized = 0;
  D.20941_8 = (struct X *) &ox.D.20531.m_storage.dummy_.data[0];
  D.20941_8->e_ = 0;
  ox.D.20531.m_initialized = 1;
  D.20946_10 = ox.D.20531.m_initialized;

Before:

  ox.D.20531.m_initialized ={v} 0;
  <<<change_dynamic_type (struct X *) &ox.D.20531.m_storage.dummy_.data[0])>>>
  D.20941_8 = (struct X *) &ox.D.20531.m_storage.dummy_.data[0];
  D.20941_8->e_ ={v} 0;
  ox.D.20531.m_initialized ={v} 1;
  D.20946_10 = ox.D.20531.m_initialized;

so it looks like we do placement new on _parts_ of an object that
continues to live over that placement new.

Uh oh.  Is this even legal?


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38503


  parent reply	other threads:[~2009-01-23 16:53 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-12 11:36 [Bug middle-end/38503] New: " pluto at agmk dot net
2008-12-12 11:38 ` [Bug middle-end/38503] " pluto at agmk dot net
2008-12-12 11:55 ` rguenth at gcc dot gnu dot org
2009-01-01  5:13 ` pinskia at gcc dot gnu dot org
2009-01-05 11:24 ` rguenth at gcc dot gnu dot org
2009-01-09 10:25 ` jakub at gcc dot gnu dot org
2009-01-09 19:52 ` pluto at agmk dot net
2009-01-12 13:54 ` rguenth at gcc dot gnu dot org
2009-01-12 15:01 ` pluto at agmk dot net
2009-01-12 15:11 ` pluto at agmk dot net
2009-01-12 15:16 ` rguenther at suse dot de
2009-01-14 16:48 ` rguenth at gcc dot gnu dot org
2009-01-14 18:29 ` pluto at agmk dot net
2009-01-14 20:50 ` rguenther at suse dot de
2009-01-23 16:53 ` rguenth at gcc dot gnu dot org [this message]
2009-01-24 15:56 ` rguenth at gcc dot gnu dot org
2009-01-24 17:00 ` rguenth at gcc dot gnu dot org
2009-01-24 17:50 ` rguenth at gcc dot gnu dot org
2009-01-24 17:50 ` rguenth at gcc dot gnu dot org
2009-01-27 10:43 ` rguenth at gcc dot gnu dot org
2009-01-27 10:43 ` rguenth at gcc dot gnu dot org
2009-01-30 17:32 ` hjl at gcc dot gnu dot org
2009-02-02  8:55 ` pluto at agmk dot net
2009-02-02 10:23 ` rguenth at gcc dot gnu dot org
2009-02-27 10:30 ` pluto at agmk dot net
2009-02-27 10:33 ` rguenther at suse dot de
2009-02-27 11:05 ` pluto at agmk dot net
2009-02-27 11:07 ` rguenth at gcc dot gnu dot org
2009-02-27 11:22 ` pluto at agmk dot net
2009-02-27 12:04 ` rguenther at suse dot de

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=20090123165252.10033.qmail@sourceware.org \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /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).