blob: d1c730b6d231aadc6c9718f51827bee5a4646991 [file] [log] [blame]
// PR c++/81359
// { dg-do compile { target c++11 } }
template<typename _Tp, typename = decltype(_Tp())>
static int test(int);
template<typename>
static void test(...);
template <class T, class = decltype(test<T>(0))>
struct A { };
struct B
{
struct C {
int i = 0;
};
A<C> a;
};