From: Marek Polacek Date: Tue, 19 Dec 2017 11:12:35 +0000 (+0000) Subject: re PR c++/83482 (internal compiler error: Segmentation fault) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eefc884f314f76c81a64b390ac99b6c32ec45ce9;p=gcc.git re PR c++/83482 (internal compiler error: Segmentation fault) PR tree-optimization/83482 * g++.dg/torture/pr83482.C: New test. From-SVN: r255817 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 02b45eb0078..5c61361b482 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-12-19 Marek Polacek + + PR tree-optimization/83482 + * g++.dg/torture/pr83482.C: New test. + 2017-12-19 Martin Jambor 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 index 00000000000..5fa1ab1c152 --- /dev/null +++ b/gcc/testsuite/g++.dg/torture/pr83482.C @@ -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 (...) { + } +}