re PR c++/77375 (constant object with mutable subobject allocated in read-only memory)
authorJakub Jelinek <jakub@redhat.com>
Fri, 16 Sep 2016 20:21:29 +0000 (22:21 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 16 Sep 2016 20:21:29 +0000 (22:21 +0200)
commite7d61178099e49835d84fba9c5bffbace0f26099
tree7db015ca2d93feb3ea5c7237e13ae42d442bd6ba
parent146ec50fd5c73a6712d739697cd33567b42c2d3f
re PR c++/77375 (constant object with mutable subobject allocated in read-only memory)

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.

From-SVN: r240195
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/mutable1.C [new file with mode: 0644]