// RUN: %clang_cc1 -fsyntax-only -verify %s // PR5311 template class StringSwitch { public: template void Case(const char (&S)[N], const int & Value) { } }; void test_stringswitch(int argc, char *argv[]) { (void)StringSwitch(); } namespace PR6986 { template struct non_const_member_base { }; template struct member: non_const_member_base { }; struct test_class { int int_member; }; typedef member< test_class,const int,&test_class::int_member > ckey_m; void test() { ckey_m m; } } namespace rdar8980215 { enum E { E1, E2, E3 }; template struct X0 { X0() {} template X0(const X0 &); }; template struct X1 : X0 { X1() {} template X1(const X1 &x) : X0(x) { } }; X1 x1i; X1 x1f(x1i); }