]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/14033 (tree check: expected class 't', have 'x' (error_mark) in initialize_...
authorGiovanni Bajo <giovannibajo@gcc.gnu.org>
Sat, 7 Feb 2004 02:11:10 +0000 (02:11 +0000)
committerGiovanni Bajo <giovannibajo@gcc.gnu.org>
Sat, 7 Feb 2004 02:11:10 +0000 (02:11 +0000)
PR c++/14033
* g++.dg/other/crash-2.C: New test.

From-SVN: r77437

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/other/crash-2.C [new file with mode: 0644]

index 899dc70ea3567386202775eb32ca4b61cb5f2993..d64a333bb1853c33e9fe4b81cb7b64624da52be4 100644 (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
diff --git a/gcc/testsuite/g++.dg/other/crash-2.C b/gcc/testsuite/g++.dg/other/crash-2.C
new file mode 100644 (file)
index 0000000..3a19f3b
--- /dev/null
@@ -0,0 +1,13 @@
+// { dg-do compile }\r
+// { dg-options "-finline -finline-functions" }\r
+// Contributed by Hans Buchmann <hans dot buchmann at fhso dot ch>\r
+// PR c++/14033: ICE while inlining a function with incomplete parameter\r
+\r
+struct A;           // { dg-error "forward declaration" }\r
+void foo(A a) {}    // { dg-error "incomplete" }\r
+struct A {};\r
+\r
+void bar(void)\r
+{\r
+ foo(A());\r
+}\r