Douglas Gregor | d9b600c | 2010-01-12 17:52:59 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 -fsyntax-only -verify %s |
| 2 | |
| 3 | template<typename T, typename U> |
| 4 | struct X0 : T::template apply<U> { |
| 5 | X0(U u) : T::template apply<U>(u) { } |
| 6 | }; |
Douglas Gregor | 84d0a19 | 2010-01-12 21:28:44 +0000 | [diff] [blame^] | 7 | |
| 8 | template<typename T, typename U> |
| 9 | struct X1 : T::apply<U> { }; // expected-error{{missing 'template' keyword prior to dependent template name 'T::apply'}} |
| 10 | |
| 11 | template<typename T> |
| 12 | struct X2 : vector<T> { }; // expected-error{{unknown template name 'vector'}} |