1 // Copyright (C) 2001 Free Software Foundation
2 // Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
5 template <class U> struct A
7 template <class T> class B {}; // { dg-error "candidates" }
10 template <template <class> class TT> void f()
13 y = 0; // { dg-error "no match" }
16 template <class T> struct C
18 void g() { f<A<T>::template B>(); } // { dg-error "instantiated" }
24 c.g(); // { dg-error "instantiated" }