/* 
  Copyright Marek "p2004a" Rusinowski
  
  This code crashes both clang and g++ compilers
  
  reported to gcc: http://g...content-available-to-author-only...u.org/bugzilla/show_bug.cgi?id=60493
  reported to clang: http://l...content-available-to-author-only...m.org/bugs/show_bug.cgi?id=19101
*/
#include <iterator>

template <class T>
class Splay {
  public:
    class iterator;
};

template <class T, class D>
class Splay<T>::iterator : std::iterator<std::forward_iterator_tag, D> {
};

Splay<int>::iterator it;
