OSDN Git Service

* decl.c (compute_array_index_type): Don't try to do anything with
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / ttp15.C
1 template<class T> class D
2 {
3         public:
4                 int f();
5 };
6
7 template<class T> int D<T>::f()
8 {
9         return sizeof(T);
10 }
11
12 template<template<class> class D,class E> class C
13 {
14                 D<E> d;
15         public:
16                 int f();
17 };
18
19 template<template<class> class D,class E> int C<D,E>::f()
20 {
21         D<E> d2;
22         return d2.f();
23 }
24
25 int main()
26 {
27         C<D,int> c;
28         c.f();
29 }