blob: 242765894f7341236f544fcd96f6a8f58a9b6ed7 [file] [log] [blame]
Douglas Gregord9b600c2010-01-12 17:52:59 +00001// RUN: %clang_cc1 -fsyntax-only -verify %s
2
3template<typename T, typename U>
4struct X0 : T::template apply<U> {
5 X0(U u) : T::template apply<U>(u) { }
6};
Douglas Gregor84d0a192010-01-12 21:28:44 +00007
8template<typename T, typename U>
9struct X1 : T::apply<U> { }; // expected-error{{missing 'template' keyword prior to dependent template name 'T::apply'}}
10
11template<typename T>
12struct X2 : vector<T> { }; // expected-error{{unknown template name 'vector'}}