Commit 13067f21 by Lee Millward Committed by Lee Millward

PR c++27316

	PR c++27316
	* g++.dg/inherit/error3.C: New test.

	PR c++/28740
	* g++.dg/inherit/error4.C: New test.

From-SVN: r119830
parent 6946b3f7
2006-12-13 Lee Millward <lee.millward@codesourcery.com>
PR c++27316
* g++.dg/inherit/error3.C: New test.
PR c++/28740
* g++.dg/inherit/error4.C: New test.
2006-12-13 Richard Guenther <rguenther@suse.de> 2006-12-13 Richard Guenther <rguenther@suse.de>
PR tree-optimization/17687 PR tree-optimization/17687
//PR c++/27316
struct A {};
struct B : A
! // { dg-error "token" }
{};
struct B : A
! // { dg-error "token" }
{};
//PR c++/28740
struct A { virtual ~A(); };
struct B : A A {}; // { dg-error "'A'|function definition|extra" }
A foo(const B &b)
{
return b; // { dg-error "conversion" }
}
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