1 // Copyright (C) 2001 Free Software Foundation
2 // Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
7 template <class T> class B {};
10 template <template <class> class TT> struct X
15 template <class T> struct X<T::template B> // { dg-error "previous" }
20 template <class T> struct X<T::template B> // { dg-error "redefinition" }
25 template <class T> struct C