1 // { dg-options -std=c++17 } 2 3 #include <initializer_list> 4 5 struct B { }; 6 7 template <class T> 8 struct A 9 { 10 A(std::initializer_list<T>); 11 A(T, B); 12 }; 13 14 A a { 1, B() }; 15 16 template <class,class> struct same; 17 template <class T> struct same<T,T> { }; 18 19 same<decltype(a), A<int>> s; 20