Core issue 1331 - const mismatch with defaulted copy constructor
authorMarek Polacek <polacek@redhat.com>
Tue, 12 Jun 2018 20:20:11 +0000 (20:20 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Tue, 12 Jun 2018 20:20:11 +0000 (20:20 +0000)
commit4db9ca8624e902b668ef394cf81e68e4ed5faa89
tree4ac1af0c3684d81cd27dc2dee67e25f84978fc90
parent84a9d3b6c1f1de2aa6b5bef700f51b2e7c0bc600
Core issue 1331 - const mismatch with defaulted copy constructor

Core issue 1331 - const mismatch with defaulted copy constructor
* class.c (check_bases_and_members): When checking a defaulted
function, mark it as deleted rather than giving an error.

* g++.dg/cpp0x/defaulted15.C (struct F): Remove dg-error.
* g++.dg/cpp0x/defaulted52.C: New test.
* g++.dg/cpp0x/defaulted53.C: New test.
* g++.dg/cpp0x/defaulted54.C: New test.
* g++.dg/cpp0x/defaulted55.C: New test.
* g++.dg/cpp0x/defaulted56.C: New test.
* g++.dg/cpp0x/defaulted57.C: New test.
* g++.dg/cpp0x/defaulted58.C: New test.
* g++.dg/cpp0x/defaulted59.C: New test.
* g++.dg/cpp0x/defaulted60.C: New test.

From-SVN: r261526
13 files changed:
gcc/cp/ChangeLog
gcc/cp/class.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/defaulted15.C
gcc/testsuite/g++.dg/cpp0x/defaulted52.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/defaulted53.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/defaulted54.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/defaulted55.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/defaulted56.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/defaulted57.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/defaulted58.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/defaulted59.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp0x/defaulted60.C [new file with mode: 0644]