This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[testsuite] C++ i386 ICE
- To: gcc-patches at gcc dot gnu dot org
- Subject: [testsuite] C++ i386 ICE
- From: Jakub Jelinek <jakub at redhat dot com>
- Date: Wed, 7 Jun 2000 13:35:11 +0200
- Reply-To: Jakub Jelinek <jakub at redhat dot com>
Hi!
Ok to commit (or is it ok to commit new testcases into testsuite without
approval)?
This proglet aborts C++ on i386 (in various places, depending whether there
is return foo::a or return foo::a == 1 etc.).
Basically, for some reason C++ uses in some places SImode type for "a" while
in other places HImode. No fix yet.
2000-06-07 Jakub Jelinek <jakub@redhat.com>
* g++.old-deja/g++.other/type.C: New test.
--- gcc/testsuite/g++.old-deja/g++.other/type.C.jj Wed Jun 7 13:11:28 2000
+++ gcc/testsuite/g++.old-deja/g++.other/type.C Wed Jun 7 13:11:22 2000
@@ -0,0 +1,15 @@
+// Build don't link:
+
+typedef unsigned short ushort;
+class foo {
+public:
+ static ushort a;
+};
+extern "C" {
+typedef unsigned short ushort;
+}
+ushort foo::a;
+static int baz()
+{
+ return foo::a;
+}
Jakub