// RUN: %clang_cc1 -verify %s -std=c++11 namespace N { struct A; template struct B {}; } template struct C {}; struct D { template struct A {}; }; struct N::A; // expected-error {{cannot have a nested name specifier}} template struct N::B; // expected-error {{cannot have a nested name specifier}} template struct N::B; // FIXME: This is technically ill-formed, but that's not the intent. template<> struct N::B; template struct N::B; template struct C; template struct C; // FIXME: This is technically ill-formed, but that's not the intent. template<> struct C; template struct C; template struct D::A; // expected-error {{cannot have a nested name specifier}} template struct D::A; // FIXME: This is technically ill-formed, but that's not the intent. template<> struct D::A; template struct D::A;