OSDN Git Service

PR testsuite/25241
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / ttp41.C
1 // { dg-do compile }
2 template<template<class> class D,class E> class C
3 {
4         public:
5                 int g() { return 1; }
6 };
7
8 template<class T> class D
9 {
10         public:
11                 int f();
12 };
13
14 template<class T> int D<T>::f()
15 {
16         C<D,D> c;       // { dg-error "" }
17         return c.g();   // { dg-error "" }
18 }
19
20 int main()
21 {
22         D<char> d;
23         d.f();
24 }