2
0
mirror of git://gcc.gnu.org/git/gcc.git synced 2025-03-25 10:40:56 +08:00

re PR c++/52659 (GCC fails to reject a deleted function definition which is not the first declaration)

2015-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/52659
	* g++.dg/cpp0x/deleted11.C: New.

From-SVN: r221513
This commit is contained in:
Paolo Carlini 2015-03-19 11:02:47 +00:00 committed by Paolo Carlini
parent a3f94967e1
commit 397af03810
2 changed files with 13 additions and 0 deletions
gcc/testsuite

@ -1,3 +1,8 @@
2015-03-19 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/52659
* g++.dg/cpp0x/deleted11.C: New.
2015-03-19 Jakub Jelinek <jakub@redhat.com>
PR sanitizer/65400

@ -0,0 +1,8 @@
// PR c++/52659
// { dg-do compile { target c++11 } }
struct sometype {
sometype();
};
sometype::sometype() = delete; // { dg-error "deleted" }