Home | History | Annotate | Download | only in SemaTemplate

Lines Matching full:template

4 template void *; // expected-error{{expected unqualified-id}}
6 template typedef void f0; // expected-error{{explicit instantiation of typedef}}
9 template int v0; // expected-error{{does not refer}}
11 template<typename T>
20 template <typename U> T f0(T, U) { return T(); } // expected-note-re {{candidate template ignored: could not match 'int (int, U){{( __attribute__\(\(thiscall\)\))?}}' against 'int (int){{( __attribute__\(\(thiscall\)\))?}} const'}} \
21 // expected-note {{candidate template ignored: could not match 'int' against 'int *'}}
24 template<typename T>
27 template int X0<int>::value;
33 template NotDefaultConstructible X0<NotDefaultConstructible>::value; // expected-note{{instantiation}}
35 template int X0<int>::f0(int);
36 template int* X0<int>::f0(int*, int*); // expected-note{{in instantiation of member function 'X0<int>::f0' requested here}}
37 template int X0<int>::f0(int, float);
39 template int X0<int>::f0(int) const; // expected-error{{does not refer}}
40 template int* X0<int>::f0(int*, float*); // expected-error{{does not refer}}
45 template MemPtr X0<MemPtr>::f0(MemPtr); // expected-note{{requested here}}
50 template<typename T> T f1(T) { return T(); }
51 template<typename T> T* f1(T*) { return 0; }
53 template<typename T, typename U> void f2(T, U*) { } // expected-note{{candidate}}
54 template<typename T, typename U> void f2(T*, U) { } // expected-note{{candidate}}
57 template int X2::f0(int); // expected-error{{not an instantiation}}
59 template int *X2::f1(int *); // okay
61 template void X2::f2(int *, int *); // expected-error{{ambiguous}}
63 template <typename T>
64 void print_type() {} // expected-note {{candidate template ignored: could not match 'void ()' against 'void (float *)'}}
66 template void print_type<int>();
67 template void print_type<float>();
69 template <typename T>
70 void print_type(T *) {} // expected-note {{candidate template ignored: could not match 'void (int *)' against 'void (float *)'}}
72 template void print_type(int*);
73 template void print_type<int>(float*); // expected-error{{does not refer}}
76 template void print_type<double>(double*);
79 template<int I> void foo0 (int (&)[I + 1]) { }
80 template void foo0<2> (int (&)[3]);
83 template <int I> struct X0 { static int x; };
84 template <int I> int X0<I>::x;
86 template struct X0<1>;
89 template<typename> struct X3 { };
90 inline template struct X3<int>; // expected-warning{{ignoring 'inline' keyword on explicit template instantiation}}
91 static template struct X3<float>; // expected-warning{{ignoring 'static' keyword on explicit template instantiation}}
94 template<typename,typename=int>
97 template<typename,typename>
100 template struct basic_streambuf<int>;
106 template // FIXME: error here.
112 template <typename T> struct X { X() {} };
113 template<> struct X<int> { X(); };
114 template X<int>::X() {} // expected-error{{function cannot be defined in an explicit instantiation}}
118 template void foobar(int i) {} // expected-error{{function cannot be defined in an explicit instantiation}}
125 template<typename T> struct A {
127 template<typename U> static int b; // expected-note {{here}} expected-warning {{extension}}
130 template<typename U> static int c; // expected-note {{here}} expected-warning {{extension}}
133 template int A<int>::a; // expected-error {{explicit instantiation of undefined static data member 'a' of class template 'undefined_static_data_member::A<int>'}}
134 template int A<int>::b<int>; // expected-error {{explicit instantiation of undefined variable template 'undefined_static_data_member::A<int>::b<int>'}}
135 template int B::c<int>; // expected-error {{explicit instantiation of undefined variable template 'undefined_static_data_member::B::c<int>'}}
138 template<typename T> struct C {
140 template<typename U> static int b; // expected-warning {{extension}}
143 template<typename U> static int c; // expected-warning {{extension}}
145 template<typename T> int C<T>::a;
146 template<typename T> template<typename U> int C<T>::b; // expected-warning {{extension}}
147 template<typename U> int D::c; // expected-warning {{extension}}
149 template int C<int>::a;
150 template int C<int>::b<int>;
151 template int D::c<int>;
155 template <class T> void Foo(T i) throw(T) { throw i; }
157 template void Foo(int a) throw(char);
159 template void Foo(double a) throw();
161 template void Foo(long a) throw(long, char);
162 template void Foo(float a);
165 template void Foo(double a) noexcept;
170 template <int>
175 template <>