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:
parent
2500bbb69d
commit
f970e7c9c9
|
@ -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
|
||||
|
|
|
@ -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());
|
||||
}
|
Loading…
Reference in New Issue