Commit acb85bea by Paolo Carlini Committed by Paolo Carlini

re PR c++/42057 (ICE with invalid parameter of virtual function)

2009-12-01  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/42057
	* g++.dg/parse/crash54.C: New.

From-SVN: r154865
parent 30093f04
2009-12-01 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/42057
* g++.dg/parse/crash54.C: New.
2009-11-30 Chao-ying Fu <fu@mips.com>
* gcc.target/mips/dsp-lhx.c: New test.
......
// PR c++/42057
struct A; // { dg-error "forward declaration" }
struct B
{
virtual B* foo(A);
};
struct C : virtual B
{
virtual C* foo(A) { return 0; } // { dg-error "incomplete type" }
};
C c;
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