public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "hjl dot tools at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/43951] [4.6 Regression] Revision 158918 miscompiled 483.xalancbmk in SPEC CPU 2006
Date: Sat, 01 May 2010 03:13:00 -0000	[thread overview]
Message-ID: <20100501031349.9689.qmail@sourceware.org> (raw)
In-Reply-To: <bug-43951-682@http.gcc.gnu.org/bugzilla/>



------- Comment #8 from hjl dot tools at gmail dot com  2010-05-01 03:13 -------
A run-time testcase:

[hjl@gnu-34 483.xalancbmk]$ cat x.cc
extern "C" void abort (void);

class Foo 
{
public:
  Foo (void) : xxx (1) {};
  const int xxx;
};
Foo *
bar ()
{
  return new Foo;
}

int
main ()
{
  Foo *p = bar ();

  if (p->xxx != 1)
    abort ();
  return 0;
}
[hjl@gnu-34 483.xalancbmk]$ /export/gnu/import/rrs/158918/usr/bin/g++  -O2 x.cc
[hjl@gnu-34 483.xalancbmk]$ ./a.out 
Segmentation fault
[hjl@gnu-34 483.xalancbmk]$ 


-- 


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


  parent reply	other threads:[~2010-05-01  3:13 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-30 19:39 [Bug middle-end/43951] New: [4.6 Regression] 483.xalancbmk in SPEC CPU 2006 is miscompiled hjl dot tools at gmail dot com
2010-04-30 19:40 ` [Bug middle-end/43951] " hjl dot tools at gmail dot com
2010-04-30 22:00 ` [Bug middle-end/43951] [4.6 Regression] Revsion 158918 miscompiled 483.xalancbmk in SPEC CPU 2006 hjl dot tools at gmail dot com
2010-05-01  0:13 ` hjl dot tools at gmail dot com
2010-05-01  0:15 ` hjl dot tools at gmail dot com
2010-05-01  0:24 ` hjl dot tools at gmail dot com
2010-05-01  0:24 ` pinskia at gcc dot gnu dot org
2010-05-01  1:15 ` hjl dot tools at gmail dot com
2010-05-01  3:10 ` [Bug middle-end/43951] [4.6 Regression] Revision " hjl dot tools at gmail dot com
2010-05-01  3:13 ` hjl dot tools at gmail dot com [this message]
2010-05-01  3:17 ` [Bug c++/43951] " hjl dot tools at gmail dot com
2010-05-02  1:27 ` hjl dot tools at gmail dot com
2010-05-02 16:36 ` fabien dot chene at gmail dot com
2010-05-02 18:13 ` rguenth at gcc dot gnu dot org
2010-05-02 18:14 ` rguenth at gcc dot gnu dot org
2010-05-07 15:52 ` jason at gcc dot gnu dot org
2010-05-11 16:44 ` fabien dot chene at gmail dot com

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=20100501031349.9689.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).