aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRobert Lipe <robertl@gcc.gnu.org>1998-06-02 19:45:48 +0000
committerRobert Lipe <robertl@gcc.gnu.org>1998-06-02 19:45:48 +0000
commit57f1de49ebe1462104fad2c5bea6766b6d117718 (patch)
treecb234de6aba1b2e1e3c7cc3f032feced76f24ee7 /gcc
parent631253eb70f8363f4d80a0d39c305649abc2a263 (diff)
downloadgcc-57f1de49ebe1462104fad2c5bea6766b6d117718.zip
gcc-57f1de49ebe1462104fad2c5bea6766b6d117718.tar.gz
gcc-57f1de49ebe1462104fad2c5bea6766b6d117718.tar.bz2
Quoting Martin:
[ 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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.robertl/eb128.C11
1 files changed, 11 insertions, 0 deletions
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
index 0000000..ae4fc66
--- /dev/null
+++ b/gcc/testsuite/g++.old-deja/g++.robertl/eb128.C
@@ -0,0 +1,11 @@
+template<class T>
+struct A {
+ typedef T* iterator;
+public:
+ A(){}
+};
+
+void f()
+{
+ A<int&> a; // ERROR - pointer to reference
+}