This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] C and C++ ICEs


Hi!

This is just testsuite for the two bugs, I haven't tracked it down yet.
Both testcases work just fine with egcs 1.1.2.
The former dies with `invalid use of void expression', the latter with
`initializer-string for array of chars is too long`. Note that the latter
works just fine in C, just C++ shows this.
Ok to commit?

2000-06-03  Jakub Jelinek  <jakub@redhat.com>

	* gcc.c-torture/compile/20000603-1.c: New test.
	* g++.old-deja/g++.other/initstring.C: New test.

--- gcc/testsuite/gcc.c-torture/compile/20000603-1.c.jj	Sat Jun  3 09:11:37 2000
+++ gcc/testsuite/gcc.c-torture/compile/20000603-1.c	Sat Jun  3 09:12:06 2000
@@ -0,0 +1,6 @@
+typedef void foo;
+foo bar(void);
+void baz(void)
+{
+  bar();
+}
--- gcc/testsuite/g++.old-deja/g++.other/initstring.C.jj	Sat Jun  3 09:13:37 2000
+++ gcc/testsuite/g++.old-deja/g++.other/initstring.C	Sat Jun  3 09:14:39 2000
@@ -0,0 +1,3 @@
+// Build don't link:
+
+static const char foo[] = { "bar" };

	Jakub

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]