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