// RUN: %clang_cc1 -std=c++0x -fsyntax-only -verify %s template using U = T; using I = U>>>; using I = int; template using Fst = A; template using Snd = B; using I = Fst,double>; namespace StdExample { // Prerequisites for example. template struct vector { /* ... */ }; template struct Alloc {}; template using Vec = vector>; Vec v; template void process(Vec& v) // expected-note {{previous definition is here}} { /* ... */ } template void process(vector>& w) // expected-error {{redefinition of 'process'}} { /* ... */ } template class TT> void f(TT); // expected-note {{candidate template ignored}} template class TT> void g(TT>); int h() { f(v); // expected-error {{no matching function for call to 'f'}} g(v); // OK: TT = vector } // v's type is same as vector>. using VTest = vector>; using VTest = decltype(v); }