// PR c++/56614 // { dg-require-effective-target c++11 } #include namespace std { template struct allocator { }; template > struct vector { vector(std::initializer_list, const Alloc& = Alloc()) { } }; } void func() { } enum E { ee }; struct C { template C(T, std::vector = std::vector({ ee })) { } }; struct G { void gen() { C c(&func); } };