re PR c++/27316 (ICE with two ill-placed expression)

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

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

From-SVN: r119831
This commit is contained in:
Lee Millward
2006-12-13 13:58:43 +00:00
committed by Lee Millward
parent 33fce0d1c2
commit d657432bb2
3 changed files with 29 additions and 0 deletions

View File

@@ -1,3 +1,11 @@
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-12 Josh Conner <jconner@apple.com>
* g++.dg/abi/thunk3.C: Use .weak_definition on darwin.

View File

@@ -0,0 +1,11 @@
//PR c++/27316
struct A {};
struct B : A
! // { dg-error "token" }
{};
struct B : A
! // { dg-error "token" }
{};

View File

@@ -0,0 +1,10 @@
//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" }
}