https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77375
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Wed Dec 7 22:26:26 2016 New Revision: 243381 URL: https://gcc.gnu.org/viewcvs?rev=243381&root=gcc&view=rev Log: Backported from mainline 2016-09-16 Jakub Jelinek <ja...@redhat.com> PR c++/77375 * class.c (check_bases): Set CLASSTYPE_HAS_MUTABLE if any TYPE_HAS_MUTABLE_P for any bases. * g++.dg/cpp0x/mutable1.C: New test. Added: branches/gcc-6-branch/gcc/testsuite/g++.dg/cpp0x/mutable1.C Modified: branches/gcc-6-branch/gcc/cp/ChangeLog branches/gcc-6-branch/gcc/cp/class.c branches/gcc-6-branch/gcc/testsuite/ChangeLog