]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR c++/18975 (Copying objects with mutable non-static data members)
authorNathan Sidwell <nathan@gcc.gnu.org>
Tue, 21 Dec 2004 17:28:35 +0000 (17:28 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 21 Dec 2004 17:28:35 +0000 (17:28 +0000)
commitfd749a603df6e9fb3c5b46f7d7db501cc3758efd
tree3fb71da4f415c1c54ec5075034908eef2bbeca8b
parentebef4d30443353b9cf4b2b559b2429273b60065b
re PR c++/18975 (Copying objects with mutable non-static data members)

cp:
PR c++/18975
* method.c (do_build_copy_constructor): Refactor. Don't const
qualify a mutable field.
(do_build_assign_ref): Likewise.
testsuite:
PR c++/18975
* g++.dg/other/synth1.C: New.

From-SVN: r92461
gcc/cp/ChangeLog
gcc/cp/method.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/synth1.C [new file with mode: 0644]