PR sanitizer/65000
* g++.dg/ubsan/pr65000.C: New test.
From-SVN: r220663
+2015-02-12 Jakub Jelinek <jakub@redhat.com>
+
+ PR sanitizer/65000
+ * g++.dg/ubsan/pr65000.C: New test.
+
2015-02-12 Paul Thomas <pault@gcc.gnu.org>
PR fortran/64932
--- /dev/null
+// PR sanitizer/65000
+// { dg-do compile }
+// { dg-options "-O1 -fsanitize=undefined -fno-sanitize-recover" }
+
+struct B { virtual ~B () {} void foo (); };
+struct C { virtual ~C (); };
+struct A : public virtual C {};
+struct D : A { ~D () { d.foo (); } B d; };
+
+void
+bar ()
+{
+ D a;
+}