2013-11-25 Marek Polacek <polacek@redhat.com>
testsuite/
* g++.dg/ubsan/pr59250.C: New test.
From-SVN: r205349
+2013-11-25 Marek Polacek <polacek@redhat.com>
+
+ PR sanitizer/59250
+ * g++.dg/ubsan/pr59250.C: New test.
+
2013-11-25 Janus Weil <janus@gcc.gnu.org>
PR fortran/59143
--- /dev/null
+// PR sanitizer/59250
+// { dg-do compile }
+// { dg-options "-fsanitize=undefined" }
+// { dg-skip-if "" { *-*-* } { "-flto" } { "" } }
+
+struct E {
+ int i;
+};
+
+struct S {
+ const char *s;
+ S (const char *);
+ static E *e;
+};
+
+S::S (const char *) : s (0)
+{
+ e = new E ();
+}