diff options
author | Giovanni Bajo <giovannibajo@gcc.gnu.org> | 2004-02-07 02:11:10 +0000 |
---|---|---|
committer | Giovanni Bajo <giovannibajo@gcc.gnu.org> | 2004-02-07 02:11:10 +0000 |
commit | f970e7c9c9447b1c6c5839203ab658bb018aea99 (patch) | |
tree | 28428a06337b597c27e0b755f4d3af2b6c0dd745 | |
parent | 2500bbb69d3ff346d8ff6499fe6eded3fe513e95 (diff) | |
download | gcc-f970e7c9c9447b1c6c5839203ab658bb018aea99.zip gcc-f970e7c9c9447b1c6c5839203ab658bb018aea99.tar.gz gcc-f970e7c9c9447b1c6c5839203ab658bb018aea99.tar.bz2 |
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
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/other/crash-2.C | 13 |
2 files changed, 18 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 899dc70..d64a333 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 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 * g++.dg/parse/angle-bracket2.C: New test. diff --git a/gcc/testsuite/g++.dg/other/crash-2.C b/gcc/testsuite/g++.dg/other/crash-2.C new file mode 100644 index 0000000..3a19f3b --- /dev/null +++ b/gcc/testsuite/g++.dg/other/crash-2.C @@ -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());
+}
|