Lines Matching +full:- +full:- +full:requested +full:- +full:by
1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
12 int a0[sizeof(X<int>::a) == sizeof(double) ? 1 : -1];
40 …Base<T>::Inner::instance_foo(); // expected-error {{call to non-static member function without an … in test1()
45 …Base<T>::instance_foo(); // expected-error {{call to non-static member function without an object … in test2()
50 …Base<T>::Inner::instance_foo(); // expected-error {{call to non-static member function without an … in test3()
58 …Base<T>::instance_foo(); // expected-error {{call to non-static member function without an object … in test0()
68 …Base<T>::instance_foo(); // expected-error {{call to non-static member function without an object … in test2()
73 …Base<T>::Inner::instance_foo(); // expected-error {{call to non-static member function without an … in test3()
80 d1.test1(); // expected-note {{in instantiation of member function}} in test0()
81 d1.test2(); // expected-note {{in instantiation of member function}} in test0()
82 d1.test3(); // expected-note {{in instantiation of member function}} in test0()
85 d2.test0(); // expected-note {{in instantiation of member function}} in test0()
87 d2.test2(); // expected-note {{in instantiation of member function}} in test0()
88 d2.test3(); // expected-note {{in instantiation of member function}} in test0()
94 void foo(T); // expected-note {{member is declared here}}
99 …foo(v); // expected-error {{explicit qualification required to use member 'foo' from dependent bas… in doFoo()
103 template struct Derived<int>; // expected-note {{requested here}}
151 …f(t); // expected-error {{call to function 'f' that is neither visible in the template definition … in A()
155 void f(int&); // expected-note {{'f' should be declared prior to the call site}}
157 A<int> a; // expected-note {{in instantiation of member function}}
163 …f(t); // expected-error {{call to function 'f' that is neither visible in the template definition … in g()
167 void f(char&); // expected-note {{'f' should be declared prior to the call site}}
172 int k = N::M::g<char>(0);; // expected-note {{in instantiation of function}}
176 int f(char&); // expected-note {{candidate function not viable}}
179 static const int n = f(T()); // expected-error {{no matching function}}
183 int f(double); // no note, shadowed by O::f
184 O::C<double> c; // expected-note {{requested here}}
190 …return Multiply(x, x); // expected-error {{neither visible in the template definition nor found by… in Squared()
193 int Multiply(int x, int y) { // expected-note {{should be declared prior to the call site}} in Multiply()
198 Squared(5); // expected-note {{here}} in main()
206 …std::cout << value << "\n"; // expected-error {{neither visible in the template definition nor fou… in Dump()
213 …std::ostream& operator<<(std::ostream& out, ns::Data data) { // expected-note {{should be declared… in operator <<()
218 Dump(ns::Data()); // expected-note {{here}} in Use()
225 …print(std::cout, value); // expected-error 4{{neither visible in the template definition nor found… in Dump()
235 …std::ostream &print(std::ostream &out, int); // expected-note-re {{should be declared prior to the…
236 …std::ostream &print(std::ostream &out, ns::Data); // expected-note {{should be declared prior to t…
237 …std::ostream &print(std::ostream &out, std::vector<ns2::Data>); // expected-note {{should be decla…
238 …std::ostream &print(std::ostream &out, std::pair<ns::Data, ns2::Data>); // expected-note {{should …
241 Dump(0); // expected-note {{requested here}} in Use()
242 Dump(ns::Data()); // expected-note {{requested here}} in Use()
243 Dump(std::vector<ns2::Data>()); // expected-note {{requested here}} in Use()
244 Dump(std::pair<ns::Data, ns2::Data>()); // expected-note {{requested here}} in Use()
251 …n !value; // expected-error {{call to function 'operator!' that is neither visible in the template… in Negate()
258 …ns::Data operator!(ns::Data); // expected-note {{should be declared prior to the call site or in n…
261 Negate(ns::Data()); // expected-note {{requested here}} in Use()
272 __range(a); // expected-error {{undeclared identifier '__range'}} in f()
283 __range(a); // expected-error {{undeclared identifier '__range'}} in f()
288 S<int>().f(); // expected-note {{here}} in g()
298 template<typename T> void g(); // expected-note {{not viable}}
300 g<int>(T()); // expected-error {{no matching function}} in f()
308 template void f<S>(); // expected-note {{here}}
338 struct Y: Y<dim> { }; // expected-error{{base class has incomplete type}}
339 … // expected-note@-1{{definition of 'Y<dim>' is not complete until the closing '}'}}
342 X3::Y<>::iterator it; // expected-error {{no type named 'iterator' in 'PR11421::X<3>::Y<>'}}
348 struct C : public C { }; // expected-error{{base class has incomplete type}}
349 … // expected-note@-1{{definition of 'rdar12629723::X::C' is not complete until the closing '}'}}
369 …a + b; // expected-error{{call to function 'operator+' that is neither visible in the template de… in tempf()
373 …void operator+(__gnu_cxx::X, ns::Y); // expected-note{{or in namespace 'test_reserved_identifiers…
377 tempf(x, y); // expected-note{{in instantiation of}} in test()
385 namespace PR14695_A { void PR14695_f(PR14695_X); } // expected-note {{'PR14695_f' should be declare…
386 …5_f(t); } // expected-error {{call to function 'PR14695_f' that is neither visible in the template… in PR14695_g()
388 template void PR14695_g(PR14695_X); // expected-note{{requested here}}
392 …100, t); // expected-error{{call to function 'operator new' that is neither visible in the templat… in f()
399 void *operator new(size_t, OperatorNew::X); // expected-note-re {{should be declared prior to the c…
400 template void OperatorNew::f(OperatorNew::X); // expected-note {{instantiation of}}
403 template<typename T> decltype(*T()) f() {} // expected-note {{previous}} in T()
404 template<typename T> decltype(T() * T()) g() {} // expected-note {{previous}} in T()
413 template<typename T> decltype(*T()) f() {} // expected-error {{redefinition}} in T()
414 template<typename T> decltype(T() * T()) g() {} // expected-error {{redefinition}} in T()
420 …emplate <typename T> int CT2<int>::X<>; // expected-error {{template parameter list matching the n…
423 …void f() { T::template f(); } // expected-error {{a template argument list is expected after a nam… in f()
434 …is->template foo(); } // expected-error {{does not refer to a template}} expected-error {{a templa… in f()
435 void g() { this->template foo<>(); } // expected-error {{does not refer to a template}} in g()
436 void h() { this->template foo<int>(); } // expected-error {{does not refer to a template}} in h()
439 struct B { int foo(); }; // expected-note 3{{non-template here}}
444 xb.f(); // expected-note {{instantiation of}} in test()
445 xb.g(); // expected-note {{instantiation of}} in test()
446 xb.h(); // expected-note {{instantiation of}} in test()
453 …> int add() { return this->template add(0); } // expected-error {{a template argument list is expe… in add()