Merged trunk at revision 161680 into branch.
[official-gcc.git] / gcc / testsuite / g++.dg / template / qualttp5.C
blobc3ebd8c82f627c8b32d75837a1ebffcd42895f8b
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-message "operator=" }
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-message "instantiated" }
21 int main()
23         C<int> c;
24         c.g(); // { dg-message "instantiated" }