public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/56265] New: [4.8 Regression] ICE in ipa_make_edge_direct_to_target
Date: Sat, 09 Feb 2013 16:51:00 -0000	[thread overview]
Message-ID: <bug-56265-4@http.gcc.gnu.org/bugzilla/> (raw)


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

             Bug #: 56265
           Summary: [4.8 Regression] ICE in ipa_make_edge_direct_to_target
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: jakub@gcc.gnu.org
                CC: hubicka@gcc.gnu.org


int baz ();
struct A
{
  virtual int fn2 () = 0;
  virtual int *fn3 ();
  double *fn4 ();
  int fn5 (int);
  template <class T>
  void fn1 (A &, T) { fn3 (); fn4 (); fn2 (); }
};
struct B : A
{
  int fn2 () { return 6; }
  void fn3 (int, double);
  B (bool = true);
  B (int, int);
};
template <typename T>
void
foo (B &x, A &y, A &z)
{
  y.fn2 ();
  z.fn2 ();
  int i = baz ();
  int j = (y.fn3 ())[i];
  x.fn3 (j, (y.fn4 ())[i] + (z.fn4 ())[z.fn5 (j)]);
}
inline B
operator+ (A &y, A &z)
{
  B x;
  foo<int> (x, y, z);
  return x;
}
void
bar ()
{
  B a, b, c (4, 0), d;
  a.fn1 (b, .6);
  baz ();
  c + d;
}

ICEs at -O2, starting with
http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195066


             reply	other threads:[~2013-02-09 16:51 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-09 16:51 jakub at gcc dot gnu.org [this message]
2013-02-09 16:52 ` [Bug tree-optimization/56265] " jakub at gcc dot gnu.org
2013-02-10 18:46 ` ppluzhnikov at google dot com
2013-02-11 16:20 ` jakub at gcc dot gnu.org
2013-02-12  0:48 ` ppluzhnikov at google dot com
2013-02-12 17:25 ` hubicka at ucw dot cz
2013-02-13 17:16 ` aldyh at gcc dot gnu.org
2013-02-18 14:28 ` jakub at gcc dot gnu.org
2013-02-19  6:46 ` hubicka at ucw dot cz
2013-02-19 21:10 ` hubicka at ucw dot cz
2013-02-20 15:48 ` hubicka at gcc dot gnu.org
2013-02-20 21:01 ` hubicka at gcc dot gnu.org
2013-04-25 17:27 ` jamborm at gcc dot gnu.org
2013-04-25 20:52 ` hubicka at ucw dot cz
2013-05-15 10:40 ` jamborm at gcc dot gnu.org

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=bug-56265-4@http.gcc.gnu.org/bugzilla/ \
    --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).