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]

[testsuite] C++ i386 ICE


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

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