Home | History | Annotate | Download | only in SemaTemplate

Lines Matching full:template

7     template<typename T> struct Promote;
9 template<> struct Promote<short> {
13 template<> struct Promote<int> {
17 template<> struct Promote<float> {
26 M::template Promote<int>::type *ret_intptr4(int* ip) { return ip; }
28 // expected-warning@-2 {{'template' keyword outside of a template}}
31 M::template Promote<int> pi;
33 // expected-warning@-2 {{'template' keyword outside of a template}}
41 N::M::template; // expected-error{{expected unqualified-id}}
42 N::M::template Promote; // expected-error{{expected unqualified-id}}
45 template<typename T> struct A;
47 template<>
59 template<typename T>
61 typedef typename N::template B<T>::type type; // expected-error{{'B' following the 'template' keyword does not refer to a template}} \
67 template <class T> struct pair {
74 template <class T>
80 template<typename T> T f0();
83 template<typename T> T N1::f0() { }
86 template< typename > struct has_xxx0
88 template< typename > struct has_xxx0_introspect
90 template< typename > struct has_xxx0_substitute ;
91 template< typename V >
92 int int00( has_xxx0_substitute < typename V::template xxx< > > = 0 );
102 template<class ignored> struct TypedefProvider;
103 template<typename T>
113 template<typename a>
114 void nt() // expected-note{{function template 'nt' declared here}}
115 { nt<>:: } // expected-error{{qualified name refers into a specialization of function template 'nt'}} \
118 template<typename T>
119 void f(T*); // expected-note{{function template 'f' declared here}}
121 template<typename T>
122 void f(T*, T*); // expected-note{{function template 'f' declared here}}
125 f<int>:: // expected-error{{qualified name refers into a specialization of function template 'f'}}
129 template<typename T> void f(); // expected-note{{function template 'f' declared here}}
132 template<typename T, typename U>
134 typedef typename T::template f<U> type; // expected-error{{template name refers to non-type template 'X::f'}}
137 Y<X, int> yxi; // expected-note{{in instantiation of template class 'PR9226::Y<PR9226::X, int>' requested here}}
141 template <typename T>
142 struct s; // expected-note{{template is declared here}}
144 template <typename T>
146 int s<T>::template n<T>::* f; // expected-error{{implicit instantiation of undefined template 'PR9449::s<int>'}} \
147 // expected-error{{following the 'template' keyword}}
150 template void f<int>(); // expected-note{{in instantiation of}}