[Bug c++/77375] [5 Regression] constant object with mutable subobject allocated in read-only memory
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue May 30 07:29:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77375
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue May 30 07:24:56 2017
New Revision: 248608
URL: https://gcc.gnu.org/viewcvs?rev=248608&root=gcc&view=rev
Log:
Backported from mainline
2016-09-16 Jakub Jelinek <jakub@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-5-branch/gcc/testsuite/g++.dg/cpp0x/mutable1.C
Modified:
branches/gcc-5-branch/gcc/cp/ChangeLog
branches/gcc-5-branch/gcc/cp/class.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list