OSDN Git Service

PR c++/9335
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / qualttp6.C
1 // Copyright (C) 2001 Free Software Foundation
2 // Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3 // { dg-do compile }
4
5 template <template <class> class TT> class C {
6 };
7
8 template <class T> struct D {
9         C<T::template B> c; // { dg-error "no class template" }
10 };
11
12 struct E {
13 };
14
15 D<E> d; // { dg-message "instantiated" }