// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s template using A = int; // expected-note 2{{previous}} template using A = char; // expected-error {{type alias template redefinition with different types ('char' vs 'int')}} template using A = T1; // expected-error {{too many template parameters in template redeclaration}} template using B = T1; // expected-note {{previous}} template using B = T1; // expected-error {{type alias template redefinition with different types}} template struct S; template class F> using FInt = F; template using SXRInt = FInt::template R>; template using SXRInt = typename S::template R; // ok, redeclaration. template class> struct TT; namespace FilterLookup { TT f(); // expected-note {{previous declaration is here}} template using A = int; TT f(); // expected-error {{functions that differ only in their return type cannot be overloaded}} }