2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / template / qualttp5.C
blob7ac7a315abb823a85afd3aed4bfe72af0347253a
1 // Copyright (C) 2001 Free Software Foundation
2 // Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3 // { dg-do compile }
5 template <class U> struct A
7         template <class T> class B {}; // { dg-error "candidates" }
8 };
10 template <template <class> class TT> void f()
12         TT<int> y;
13         y = 0; // { dg-error "no match" }
16 template <class T> struct C
18         void g() { f<A<T>::template B>(); } // { dg-error "instantiated" }
21 int main()
23         C<int> c;
24         c.g(); // { dg-error "instantiated" }