re PR c++/53096 ([DR 1333] [c++11] should be possible to default a copy ctor that...
authorPaolo Carlini <paolo.carlini@oracle.com>
Thu, 26 Apr 2012 23:32:14 +0000 (23:32 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Thu, 26 Apr 2012 23:32:14 +0000 (23:32 +0000)
commitdf16e146cf5355d7faeee0812206a0a688643de9
treedcf120c2e03b88960b03842a63d33845340766ed
parentfd59643c209efc38aeda606675357ea3f0afe0b8
re PR c++/53096 ([DR 1333] [c++11] should be possible to default a copy ctor that takes non-const arg)

/cp
2012-04-26  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/53096
* class.c (check_bases_and_members): Implement core/1333, do not
disallow defaulted in the class body non-const ref special members.

/testsuite
2012-04-26  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/53096
* g++.dg/cpp0x/defaulted35.C: New.
* g++.dg/cpp0x/defaulted15.C: Adjust.

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