1 // PR c++/50478
2 // { dg-do compile { target c++11 } }
3 
4 #include <initializer_list>
5 
6 namespace std
7 {
8   template<typename _Key>
9     struct set
10     {
11       void insert(const _Key&);
12       void insert(initializer_list<_Key>);
13     };
14 
15   struct string
16   {
17     string(const string&, __SIZE_TYPE__, __SIZE_TYPE__ = -1);
18     string(const char*);
19     string(initializer_list<char>);
20   };
21 }
22 
main()23 int main()
24 {
25   std::set<std::string> s;
26   s.insert( { "abc", "def", "hij"} );
27 }
28