blob: dee4735de9e38af74d610b5e12c20636576272b8 [file] [log] [blame]
Douglas Gregor7f43d672009-02-25 23:52:28 +00001// RUN: clang -fsyntax-only -verify %s
2namespace N {
3 template<typename T> class A;
4
5 template<> class A<int> { };
6
7 class B : public A<int> { };
8}
9
10class C1 : public N::A<int> { };
11
12class C2 : public N::A<float> { }; // expected-error{{base class has incomplete type}} \
13 // FIXME: expected-note{{forward declaration of 'class A'}}
14
15struct D1 {
16 operator N::A<int>();
17};
18
19namespace N {
20 struct D2 {
21 operator A<int>();
22 };
23}