// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
using A = int; // expected-note 2{{previous}}
using A = char; // expected-error {{type alias template redefinition with different types ('char' vs 'int')}}
using A = T1; // expected-error {{too many template parameters in template redeclaration}}
using B = T1; // expected-note {{previous}}
using B = T1; // expected-error {{type alias template redefinition with different types ('T1' (aka 'type-parameter-0-1') vs 'T1' (aka 'type-parameter-0-0'))}}
;
using FInt = F<int>;
using SXRInt = FInt<S<X>::template R>;
using SXRInt = typename S<X>::template R<int>; // ok, redeclaration.
;