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