New C++ test

Neil Booth neilb@earthling.net
Sat Dec 2 02:45:00 GMT 2000


>From already-fixed PR44.

I'll commit next time I have a successful bootstrap.

Neil.

	* g++.old-deja/g++.other/instan2.C

Index: g++.old-deja/g++.other/instan2.C
===================================================================
RCS file: instan2.C
diff -N instan2.C
--- /dev/null	Tue May  5 13:32:27 1998
+++ instan2.C	Sat Dec  2 02:44:22 2000
@@ -0,0 +1,15 @@
+// Build don't link:
+// Origin: Neil Booth, from bug report #44
+
+#include <iterator>
+
+template<class T>
+struct X
+{
+};
+
+template<class T>
+X<T> operator+(const X<T>&, const X<T>&);
+
+template<>
+X<int> operator+<int>(const X<int>&, const X<int>&);


More information about the Gcc-patches mailing list