2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / ttp56.C
blob70c2312ac9814a29b0bfbb57d1e03648f2620d4b
1 // { dg-do assemble  }
3 // by Paul Burchard <burchard@pobox.com>, Level Set Systems, Inc.
4 // Copyright (C) 1999 Free Software Foundation
6 template<class X>
7 class A {
8 };
9 template<class Y>
10 class B {
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;
23 int main() {
24         C<A> c; // { dg-bogus "" } redefinition of `template <class XX> template <class X> class A<X>'