Quoting Martin:
authorRobert Lipe <robertl@gcc.gnu.org>
Tue, 2 Jun 1998 19:45:48 +0000 (19:45 +0000)
committerRobert Lipe <robertl@gcc.gnu.org>
Tue, 2 Jun 1998 19:45:48 +0000 (19:45 +0000)
[ eb47, eb53, eb89 ] build standard templates from reference types,
which is illegal.
Unfortunately, they all give errors for lines in library headers,
which I can't test for.
Therefore, I suggest to remove all of them, and replace it with
the [eb128.C]

From-SVN: r20185

gcc/testsuite/g++.old-deja/g++.robertl/eb128.C [new file with mode: 0644]

diff --git a/gcc/testsuite/g++.old-deja/g++.robertl/eb128.C b/gcc/testsuite/g++.old-deja/g++.robertl/eb128.C
new file mode 100644 (file)
index 0000000..ae4fc66
--- /dev/null
@@ -0,0 +1,11 @@
+template<class T>
+struct A {
+  typedef T* iterator;
+public:
+  A(){}
+};
+
+void f()
+{
+  A<int&> a;  // ERROR - pointer to reference
+}