re PR c++/83482 (internal compiler error: Segmentation fault)
authorMarek Polacek <polacek@redhat.com>
Tue, 19 Dec 2017 11:12:35 +0000 (11:12 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 19 Dec 2017 11:12:35 +0000 (11:12 +0000)
PR tree-optimization/83482
* g++.dg/torture/pr83482.C: New test.

From-SVN: r255817

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr83482.C [new file with mode: 0644]

index 02b45eb0078f999582df07d1c60a280870218347..5c61361b4824fba7327d643a57301ce0bc961d88 100644 (file)
@@ -1,3 +1,8 @@
+2017-12-19  Marek Polacek  <polacek@redhat.com>
+
+       PR tree-optimization/83482
+       * g++.dg/torture/pr83482.C: New test.
+
 2017-12-19  Martin Jambor  <mjambor@suse.cz>
 
        PR tree-optimization/83329
diff --git a/gcc/testsuite/g++.dg/torture/pr83482.C b/gcc/testsuite/g++.dg/torture/pr83482.C
new file mode 100644 (file)
index 0000000..5fa1ab1
--- /dev/null
@@ -0,0 +1,20 @@
+// PR tree-optimization/83482
+// { dg-do compile }
+
+int _setjmp (void **);
+void *buf[64];
+
+void a();
+struct b {
+  virtual long c() { return 0L; }
+  void m_fn2() { c(); }
+} d;
+
+void e() {
+  d.m_fn2();
+  try {
+    a();
+    _setjmp(0);
+  } catch (...) {
+  }
+}