2010-11-03 Richard Guenther <rguenther@suse.de>
PR tree-optimization/46154
* g++.dg/torture/pr46154.C: New testcase.
From-SVN: r166311
2010-11-04 Richard Guenther <rguenther@suse.de>
+ PR tree-optimization/46154
+ * g++.dg/torture/pr46154.C: New testcase.
+
+2010-11-04 Richard Guenther <rguenther@suse.de>
+
PR tree-optimization/45733
* gcc.dg/pr45733.c: New testcase.
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-fipa-cp-clone" } */
+
+struct S
+{
+ virtual int foo ()
+ {
+ return foo () == 0;
+ }
+ virtual void baz ();
+};
+
+void A ()
+{
+ S s;
+ s.foo ();
+}