1 // PR c++/61134
2 // { dg-do compile { target c++11 } }
3 
4 struct Base { };
5 
6 template <typename>
7 struct Fixed {
8   typedef const char* name;
9 };
10 
11 template <typename VT, typename... Fields>
12 void New(const char* name,
13          typename Fixed<Fields>::name... field_names);
14 
15 template <typename VT, typename... Fields>
CreateMetric(const char * name,typename Fixed<Fields>::name...field_names,const Base &)16 void CreateMetric(const char* name,
17                   typename Fixed<Fields>::name... field_names,
18                   const Base&) { }
19 
20 
Fn()21 void Fn()
22 {
23   CreateMetric<int, const char*>("abcd", "def", Base());
24 }
25