]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR c++/77375 (constant object with mutable subobject allocated in read...
authorJakub Jelinek <jakub@redhat.com>
Tue, 30 May 2017 07:24:56 +0000 (09:24 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 30 May 2017 07:24:56 +0000 (09:24 +0200)
commitce4c1bf01a651b83ed3075bab6f1b129425ca426
tree3ba0142516282c56d5e00f317a109ee5c70a4d3d
parent77fe8048b2d91dd3385c9685d9a8996f7d563f02
backport: re PR c++/77375 (constant object with mutable subobject allocated in read-only memory)

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.

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