// PR c++/58353 // { dg-do compile { target c++11 } } template struct seq_t { template struct seq{}; template struct gen : gen{}; template struct gen<0, Es...> : seq{}; struct bits_t{ E e[CNT]; }; template static bits_t init(seq) {return {{Es...}};} static bits_t init() {return init(gen{});} }; typedef seq_t wow; int main() { wow::init(); }