Home | History | Annotate | Download | only in SemaCXX

Lines Matching refs:decltype

6   decltype(0, f0()) i = 0;
24 auto call(F&& fn) -> decltype(fn(T())) {
29 auto then(F&& fn) -> decltype(call(fn))
42 A(decltype(nullptr) param);
47 template<typename T> auto f(T t) -> decltype(S<int>(t)) {
48 using U = decltype(S<int>(t));
54 B(decltype(undeclared)); // expected-error {{undeclared identifier}}
57 C(decltype(undeclared; // expected-error {{undeclared identifier}} \
64 static decltype(T{}, U{}) &f();
72 decltype(f()) *a; // ok, function call
73 decltype(A()) *b; // expected-error {{attempt to use a deleted function}}
74 decltype(0, f()) *c; // ok, function call on RHS of comma
75 decltype(0, A()) *d; // expected-error {{attempt to use a deleted function}}
76 decltype(f(), 0) *e; // expected-error {{attempt to use a deleted function}}
83 void foo(conditional<decltype((1),int>) { // expected-note 2 {{to match this '('}} expected-error {{expected ')'}}