blob: 202897e4bc217993ec1fc2d7df44a1ff8c3e6d92 [file] [log] [blame]
// PR c++/69095
// { dg-do compile { target c++11 } }
struct B1 {
template <typename Ret, typename... Args, unsigned = sizeof(Args)> // { dg-error "parameter packs not expanded" }
void insert(Ret);
};
struct B2 {
template <typename Ret, typename... Args>
void insert(Ret, unsigned = sizeof(Args)); // { dg-error "parameter packs not expanded" }
};
template <typename Ret, typename... Args, unsigned = sizeof(Args)> // { dg-error "parameter packs not expanded" }
void insert1(Ret);
template <typename Ret, typename... Args>
void insert2(Ret, unsigned = sizeof(Args)); // { dg-error "parameter packs not expanded" }