public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/56265] New: [4.8 Regression] ICE in ipa_make_edge_direct_to_target
@ 2013-02-09 16:51 jakub at gcc dot gnu.org
  2013-02-09 16:52 ` [Bug tree-optimization/56265] " jakub at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-02-09 16:51 UTC (permalink / raw)
  To: gcc-bugs


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


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2013-05-15 10:40 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-09 16:51 [Bug tree-optimization/56265] New: [4.8 Regression] ICE in ipa_make_edge_direct_to_target jakub at gcc dot gnu.org
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

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