[Bug c++/77375] [5/6 Regression] constant object with mutable subobject allocated in read-only memory
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 7 22:27:00 GMT 2016
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 <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-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
More information about the Gcc-bugs
mailing list