mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-24 12:51:15 +08:00
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
This commit is contained in:
parent
30093f0492
commit
acb85bea1d
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
15
gcc/testsuite/g++.dg/parse/crash54.C
Normal file
15
gcc/testsuite/g++.dg/parse/crash54.C
Normal file
@ -0,0 +1,15 @@
|
||||
// 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;
|
Loading…
x
Reference in New Issue
Block a user