https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70272
--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Mar 30 12:42:43 2016 New Revision: 234564 URL: https://gcc.gnu.org/viewcvs?rev=234564&root=gcc&view=rev Log: Backported from mainline 2016-03-17 Jakub Jelinek <ja...@redhat.com> PR c++/70272 * decl.c (begin_destructor_body): Don't insert clobber if is_empty_class (current_class_type). * g++.dg/opt/flifetime-dse6.C: New test. * g++.dg/tree-ssa/ehcleanup-1.C: Adjust unreachable count. Added: branches/gcc-5-branch/gcc/testsuite/g++.dg/opt/flifetime-dse6.C Modified: branches/gcc-5-branch/gcc/cp/ChangeLog branches/gcc-5-branch/gcc/cp/decl.c branches/gcc-5-branch/gcc/testsuite/ChangeLog branches/gcc-5-branch/gcc/testsuite/g++.dg/tree-ssa/ehcleanup-1.C