// 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; } }