OSDN Git Service

* g++.dg/template/friend19.C: Fix typo.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / ttp56.C
1 // { dg-do assemble  }
2
3 // by Paul Burchard <burchard@pobox.com>, Level Set Systems, Inc.
4 // Copyright (C) 1999 Free Software Foundation
5
6 template<class X>
7 class A {
8 };
9 template<class Y>
10 class B {
11 };
12
13 template<template<class XX> class AA> // { dg-bogus "" } `template <class XX> template <class X> class A<X>' previously declared here
14 class C {
15         class D {
16         };
17         D d;
18         class E : public B<D> {
19         };
20         E e;
21 };
22
23 int main() {
24         C<A> c; // { dg-bogus "" } redefinition of `template <class XX> template <class X> class A<X>'
25 }
26