// PR c++/62255 // It's not clear whether this is well-formed; instantiating the // initializer of 'value' causes the instantiation of Derived, which in // turn requires the value of 'value', but the recursion ends there, so it // seems reasonable to allow it. template struct Test { template static int check(typename X::Type*); template static char check(...); static const bool value = (sizeof(check(0)) == sizeof(int)); }; template struct Sink { }; template struct Derived : Sink >::value> { typedef int Type; }; Sink >::value> s;