Commit f970e7c9 by Giovanni Bajo

re PR c++/14033 (tree check: expected class 't', have 'x' (error_mark) in…

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
parent 2500bbb6
2003-02-06 Giovanni Bajo <giovannibajo@gcc.gnu.org> 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 PR c++/14028
* g++.dg/parse/angle-bracket2.C: New test. * g++.dg/parse/angle-bracket2.C: New test.
......
// { 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());
}
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