Lines Matching refs:type

5     typedef int type;
12 struct type { };
13 int type; // expected-note 2{{referenced member 'type' is declared here}}
19 typename N::A::type *ip1 = &i; // expected-warning{{'typename' occurs outside of a template}}
20 typename N::B::type *ip2 = &i; // expected-error{{no type named 'type' in 'N::B'}} \
22 typename N::C::type *ip3 = &i; // expected-error{{typename specifier refers to non-type member 'type'}} \
26 typename N::A::type f(typename N::A::type(a)); // expected-warning{{disambiguated as a function declaration}} \
31 for (typename A::type i = 0; i < 10; ++i) // expected-warning{{'typename' occurs outside of a template}}
34 const typename N::A::type f2(d); // expected-warning{{'typename' occurs outside of a template}}
40 typedef typename T::type type; // expected-error {{no type named 'type' in 'N::B'}} \
41 // expected-error {{no type named 'type' in 'B'}} \
43 // expected-error 2{{typename specifier refers to non-type member 'type'}} \
44 // expected-error{{type 'int' cannot be used prior to '::' because it has no members}}
48 N::X<N::A>::type *ip4 = &i;
49 N::X<N::B>::type *ip5 = &i; // expected-note{{in instantiation of template class 'N::X<N::B>' requested here}}
50 N::X<N::C>::type *ip6 = &i; // expected-note{{in instantiation of template class 'N::X<N::C>' requested here}}
52 N::X<int>::type fail1; // expected-note{{in instantiation of template class 'N::X<int>' requested here}}
56 typedef typename N::X<T>::type *type; // expected-note{{in instantiation of template class 'N::X<B>' requested here}} \
61 typedef int type;
68 struct type { };
69 int type; // expected-note{{referenced member 'type' is declared here}}
72 ::Y<A>::type ip7 = &i;
73 ::Y<B>::type ip8 = &i; // expected-note{{in instantiation of template class 'Y<B>' requested here}}
74 ::Y<C>::type ip9 = &i; // expected-note{{in instantiation of template class 'Y<C>' requested here}}
77 typedef typename T::foo foo; // expected-error {{type 'long' cannot be used prior to '::' because it has no members}}
85 typedef typename foo::bar bar; // expected-error {{type 'foo' (aka 'double') cannot be used prior to '::' because it has no members}}
143 // expected-error@+2 {{template argument for template type parameter must be a type; did you forget 'typename'?}}
146 pair<this->ExampleItemSet::iterator, int> i; // expected-error-re {{template argument for template type parameter must be a type{{$}}}}
147 pair<ExampleItemSet::operator[], int> i; // expected-error-re {{template argument for template type parameter must be a type{{$}}}}
152 // expected-error@+2 {{template argument for template type parameter must be a type; did you forget 'typename'?}}
163 // expected-error@+2 {{template argument for template type parameter must be a type; did you forget 'typename'?}}
170 // expected-error@+2 {{template argument for template type parameter must be a type; did you forget 'typename'?}}
173 pair<bar, int> foobar; // expected-error {{template argument for template type parameter must be a type}}
188 // expected-error@+2 {{must be a type; did you forget 'typename'?}}
195 // expected-error@+2 {{must be a type; did you forget 'typename'?}}
210 template <typename> struct S { typedef int type; };
214 // expected-error@+1 {{missing 'typename' prior to dependent type name 'S<int>::type'}}
215 template <typename T> void g() { f</*typename*/ S<T>::type(int())>(); }
218 template <typename T> void h() { f<typename S<T>::type(int())>(); }
228 // expected-error@+1 {{missing 'typename' prior to dependent type name 'B::type_or_int'}}
230 // expected-error@+1 {{typename specifier refers to non-type member 'type_or_int' in 'pointer_vs_multiply::A'}}