re PR c++/14033 (tree check: expected class 't', have 'x' (error_mark) in initialize_inlined_parameters, at tree-inline.c:829)

PR c++/14033
	* g++.dg/other/crash-2.C: New test.

From-SVN: r77437
This commit is contained in:
Giovanni Bajo 2004-02-07 02:11:10 +00:00
parent 2500bbb69d
commit f970e7c9c9
2 changed files with 18 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-02-06 Giovanni Bajo <giovannibajo@gcc.gnu.org>
PR c++/14033
* g++.dg/other/crash-2.C: New test.
2003-02-06 Giovanni Bajo <giovannibajo@gcc.gnu.org>
PR c++/14028

View File

@ -0,0 +1,13 @@
// { dg-do compile }
// { dg-options "-finline -finline-functions" }
// Contributed by Hans Buchmann <hans dot buchmann at fhso dot ch>
// PR c++/14033: ICE while inlining a function with incomplete parameter
struct A; // { dg-error "forward declaration" }
void foo(A a) {} // { dg-error "incomplete" }
struct A {};
void bar(void)
{
foo(A());
}