diff options
author | giovannibajo <giovannibajo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-07 02:11:10 +0000 |
---|---|---|
committer | giovannibajo <giovannibajo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-07 02:11:10 +0000 |
commit | 49341f28187c161e8b47043b2b56d6642fa5ce5c (patch) | |
tree | 28428a06337b597c27e0b755f4d3af2b6c0dd745 | |
parent | caaf4cd0127f6b2a5b1804b0e8662535bba2288f (diff) | |
download | gcc-49341f28187c161e8b47043b2b56d6642fa5ce5c.tar.gz |
PR c++/14033
* g++.dg/other/crash-2.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@77437 138bc75d-0d04-0410-961f-82ee72b054a4
-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 899dc70ea35..d64a333bb18 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 00000000000..3a19f3ba8ab --- /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());
+}
|