blob: cc5c24ddc67a3f34319ee03d7007dba03082ad2d [file] [log] [blame]
// PR c++/61134
// { dg-do compile { target c++11 } }
struct Base { };
template <typename>
struct Fixed {
typedef const char* name;
};
template <typename VT, typename... Fields>
void New(const char* name,
typename Fixed<Fields>::name... field_names);
template <typename VT, typename... Fields>
void CreateMetric(const char* name,
typename Fixed<Fields>::name... field_names,
const Base&) { }
void Fn()
{
CreateMetric<int, const char*>("abcd", "def", Base());
}