1// PR c++/44969 2// { dg-do compile { target c++11 } } 3 4template<typename Tp, typename... Args> 5 class mini_is_constructible 6 { 7 typedef char one; 8 typedef struct { char arr[2]; } two; 9 10 template<typename Tp1, typename... Args1> 11 static decltype(Tp1(Args1()...), one()) 12 test(int); 13 14 template<typename, typename...> 15 static two test(...); 16 17 public: 18 static const bool value = sizeof(test<Tp, Args...>(0)) == 1; 19 }; 20 21class A { }; 22 23int Test[mini_is_constructible<int, A, A>::value ? -1 : 1]; 24