blob: 70c2312ac9814a29b0bfbb57d1e03648f2620d4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
// { dg-do assemble }
// by Paul Burchard <burchard@pobox.com>, Level Set Systems, Inc.
// Copyright (C) 1999 Free Software Foundation
template<class X>
class A {
};
template<class Y>
class B {
};
template<template<class XX> class AA> // { dg-bogus "" } `template <class XX> template <class X> class A<X>' previously declared here
class C {
class D {
};
D d;
class E : public B<D> {
};
E e;
};
int main() {
C<A> c; // { dg-bogus "" } redefinition of `template <class XX> template <class X> class A<X>'
}
|