| 1 |
// PR c++/106366 |
| 2 |
// { dg-do compile { target c++17 } } |
| 3 |
|
| 4 |
#include <initializer_list> |
| 5 |
|
| 6 |
template<class T> |
| 7 |
struct A { A(...); }; |
| 8 |
|
| 9 |
template<typename T> |
| 10 |
A(std::initializer_list<T>) -> A<T>; |
| 11 |
|
| 12 |
A a{1,2,3}; |
| 13 |
using type = decltype(a); |
| 14 |
using type = A<int>; |