diff options
author | Robert Lipe <robertl@gcc.gnu.org> | 1998-06-02 19:45:48 +0000 |
---|---|---|
committer | Robert Lipe <robertl@gcc.gnu.org> | 1998-06-02 19:45:48 +0000 |
commit | 57f1de49ebe1462104fad2c5bea6766b6d117718 (patch) | |
tree | cb234de6aba1b2e1e3c7cc3f032feced76f24ee7 /gcc | |
parent | 631253eb70f8363f4d80a0d39c305649abc2a263 (diff) | |
download | gcc-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.C | 11 |
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 +} |