1 // RUN: clang-cc -fsyntax-only -verify %s
11 typedef X<int***> *ptr;
14 // FIXME: EDG rejects this in their strict-conformance mode, but I
15 // don't see any wording making this ill-formed. Actually,
16 // [temp.local]p2 might make it ill-formed. Are we "in the scope of
17 // the class template specialization?"
18 X<float>::X<int> xi = x;
22 // FIXME: test template template parameters
23 template<typename T, typename U>
27 typedef U_type U_type2;
29 void f0(const X0&); // expected-note{{here}}
31 void f0(const X0<T, U>&); // expected-error{{redecl}}
33 void f1(const X0&); // expected-note{{here}}
35 void f1(const X0<type, U_type2>&); // expected-error{{redecl}}
37 void f2(const X0&); // expected-note{{here}}
39 void f2(const ::X0<type, U_type2>&); // expected-error{{redecl}}
42 template<typename T, T N>
44 void f0(const X1&); // expected-note{{here}}
46 void f0(const X1<T, N>&); // expected-error{{redecl}}