Home | History | Annotate | Download | only in SemaTemplate

Lines Matching full:template

4 template<typename T> class B {
8 template<typename T> struct X : B<T> {
15 template<class T> class Q;
16 template<class T> class R : Q<T> {T current;};
20 template <class T> class Base {
31 template <class T> class Derived1 : Base<T> {
54 template <class T> class Derived2 : Base<T>::Inner {
93 template <class T> struct Base {
97 template <class T> struct Derived : Base<T> {
103 template struct Derived<int>; // expected-note {{requested here}}
107 template <class T>
112 template <class T>
129 template <class T>
135 template<typename T> struct basic_ostream;
138 template<typename T> struct vector {};
141 template<typename T, typename U> struct pair {};
148 template<typename T> struct A {
151 f(t); // expected-error {{call to function 'f' that is neither visible in the template definition nor found by argument-dependent lookup}}
162 template<typename T> int g(T t) {
163 f(t); // expected-error {{call to function 'f' that is neither visible in the template definition nor found by argument-dependent lookup}}
178 template<typename T> struct C {
189 template <typename T> T Squared(T x) {
190 return Multiply(x, x); // expected-error {{neither visible in the template definition nor found by argument-dependent lookup}}
204 template<typename T>
206 std::cout << value << "\n"; // expected-error {{neither visible in the template definition nor found by argument-dependent lookup}}
223 template<typename T>
225 print(std::cout, value); // expected-error 4{{neither visible in the template definition nor found by argument-dependent lookup}}
249 template<typename T>
251 return !value; // expected-error {{call to function 'operator!' that is neither visible in the template definition nor found by argument-dependent lookup}}
268 template<typename T>
282 template<typename T>
301 template<typename T> void g(); // expected-note {{not viable}}
302 template<typename T> void f() {
311 template void f<S>(); // expected-note {{here}}
317 template <typename T>
323 template <typename T2 = typename default_names::id>
338 template < unsigned > struct X {
340 template<unsigned dim=dimension>
348 template<class T>
362 template<class T>
369 template<typename A, typename B> void tempf(A a, B b) {
370 a + b; // expected-error{{call to function 'operator+' that is neither visible in the template definition nor found by argument-dependent lookup}}
387 template<typename T> void PR14695_g(T t) { PR14695_f(t); } // expected-error {{call to function 'PR14695_f' that is neither visible in the template definition nor found by argument-dependent lookup}}
389 template void PR14695_g(PR14695_X); // expected-note{{requested here}}
392 template<typename T> void f(T t) {
393 operator new(100, t); // expected-error{{call to function 'operator new' that is neither visible in the template definition nor found by argument-dependent lookup}}
401 template void OperatorNew::f(OperatorNew::X); // expected-note {{instantiation of}}
404 template<typename T> decltype(*T()) f() {} // expected-note {{previous}}
405 template<typename T> decltype(T() * T()) g() {} // expected-note {{previous}}
414 template<typename T> decltype(*T()) f() {} // expected-error {{redefinition}}
415 template<typename T> decltype(T() * T()) g() {} // expected-error {{redefinition}}
418 template <typename> struct CT2 {
419 template <class U> struct X;
421 template <typename T> int CT2<int>::X<>; // expected-error {{template parameter list matching the non-templated nested type 'CT2<int>' should be empty}}