OSDN Git Service

PR c++/29363
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / qualttp18.C
1 // Copyright (C) 2001, 2002 Free Software Foundation
2 // Contributed by Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
3 // { dg-do compile }
4
5 struct A
6 {
7         template <class T> class B {};
8 };
9
10 template <template <class> class TT> struct X
11 {
12         TT<int> y;
13 };
14
15 struct C
16 {
17         X<A::template B> x; // { dg-error "" }
18 };
19
20 int main()
21 {
22         C c;
23 }