// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify %s // The example given in the standard (this is rejected for other reasons anyway). template struct A; template using B = typename A::U; // expected-error {{no type named 'U' in 'A'}} template struct A { typedef B U; // expected-note {{in instantiation of template type alias 'B' requested here}} }; B b; template using U = int; template void f(U ...xs); void g() { f(1, 2, 3); } // FIXME: This is illegal, but probably only because CWG1044 missed this paragraph. template using U = U;