https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77905
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Tue May 30 07:51:12 2017 New Revision: 248634 URL: https://gcc.gnu.org/viewcvs?rev=248634&root=gcc&view=rev Log: Backported from mainline 2016-12-13 Jakub Jelinek <ja...@redhat.com> PR ipa/77905 * ipa-pure-const.c (cdtor_p): Return true for DECL_STATIC_{CON,DE}STRUCTOR even when it is DECL_LOOPING_CONST_OR_PURE_P. * g++.dg/ipa/pr77905.C: New test. Added: branches/gcc-5-branch/gcc/testsuite/g++.dg/ipa/pr77905.C Modified: branches/gcc-5-branch/gcc/ChangeLog branches/gcc-5-branch/gcc/ipa-pure-const.c branches/gcc-5-branch/gcc/testsuite/ChangeLog