aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/crash36.C
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/crash36.C')
-rw-r--r--gcc/testsuite/g++.old-deja/g++.pt/crash36.C35
1 files changed, 0 insertions, 35 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/crash36.C b/gcc/testsuite/g++.old-deja/g++.pt/crash36.C
deleted file mode 100644
index b5281c32b61..00000000000
--- a/gcc/testsuite/g++.old-deja/g++.pt/crash36.C
+++ /dev/null
@@ -1,35 +0,0 @@
-// Build don't link:
-// Origin: Andreas Kloeckner <ak@ixion.net>
-
-template<class Iterator> struct iterator_traits {
- typedef typename Iterator::iterator_category
- iterator_category; // ERROR - no type iterator_category
-};
-
-template<class Category>
-struct iterator {
- typedef Category iterator_category;
-};
-
-
-template <class Iterator>
-struct reverse_iterator : public
-iterator<typename iterator_traits<Iterator>::iterator_category> {
- protected:
- Iterator current;
-
-};
-class tag { };
-
-template <class T>
-struct list {
- template <class Item>
- struct list_iterator {
- };
-
- reverse_iterator<list_iterator<T> > rbegin()
- { return reverse_iterator<list_iterator<T> > // ERROR - no type
- (list_iterator<T>(Head->next())); } // ERROR - instantiated here
-};
-
-template class list<int>; // ERROR - instantiated from here