Commit 397af038 by Paolo Carlini Committed by Paolo Carlini

re PR c++/52659 (GCC fails to reject a deleted function definition which is not…

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
parent a3f94967
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
......
// PR c++/52659
// { dg-do compile { target c++11 } }
struct sometype {
sometype();
};
sometype::sometype() = delete; // { dg-error "deleted" }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment