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: two testcases for g++ bugs in latest snapshots.



Hi,
attached is a patch which provides two new testcases for g++
bugs. The bugs are present in the latest snapshots.

-- kga
-------------------------------------------------------------------------
Klaus-Georg Adams        Email: Klaus-Georg.Adams@chemie.uni-karlsruhe.de
Institut f. Anorg. Chemie, Lehrstuhl II            Tel: 49(0)721 608 3485
Universität Karlsruhe, D-76128 Karlsruhe
-------------------------------------------------------------------------

Index: ChangeLog
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/testsuite/ChangeLog,v
retrieving revision 1.65
diff -u -p -u -r1.65 ChangeLog
--- ChangeLog	1998/06/29 14:04:26	1.65
+++ ChangeLog	1998/06/30 13:53:30
@@ -1,3 +1,8 @@
+Tue Jun 30 11:51:42 1998  Klaus-Georg Adams  <Klaus-Georg.Adams@chemie.uni-karlsruhe.de>
+
+        * g++.old-deja/g++.robertl/eb132.C: New test.
+        * g++.old-deja/g++.robertl/eb133.C: Likewise.
+
 1998-06-29  Dave Love  <d.love@dl.ac.uk>
 
 	* g77.f-torture/execute/980628-3.f: Remove mail headers.

--- /dev/null	Mon Jul 18 01:46:18 1994
+++ gcc/testsuite/g++.old-deja/g++.robertl/eb132.C	Tue Jun 30 15:48:25 1998
@@ -0,0 +1,26 @@
+// Build don't link
+// From: Klaus-Georg Adams <Klaus-Georg.Adams@chemie.uni-karlsruhe.de> 
+// Reported against EGCS snaps 98/06/28.
+//
+// Compilation of this program with the flags g++ -Wall -O -fgcse -frerun-loop-opt
+// or -O2 produces spurious warnings in the standarad header <std/bastring.h>.
+//
+// They vanish if the declaration of a::b is taken out.
+
+#include <string>
+
+string foo();
+struct a {
+	void bar();
+	enum b { c, d };
+	b theb;
+	string baz;
+};
+
+void
+a::bar()
+{
+	baz += foo() + foo();
+	baz += foo() + foo() + "foo";
+}
+
--- /dev/null	Mon Jul 18 01:46:18 1994
+++ gcc/testsuite/g++.old-deja/g++.robertl/eb133.C	Tue Jun 30 15:51:35 1998
@@ -0,0 +1,16 @@
+// Build don't link
+// Gives ICE 109
+// From: Klaus-Georg Adams <Klaus-Georg.Adams@chemie.uni-karlsruhe.de> 
+// Reported against EGCS snaps 98/06/28.
+
+int main()
+{
+	try {
+	}
+	catch (bad_alloc) { // ERROR - parse error
+		return 1;
+	}
+	return 0;
+}
+
+	


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