// PR c++/116071 // { dg-options "-std=c++14 -fconcepts" } template struct S { ~S(); }; template S::~S() { } template struct result_of; template struct result_of { using type = void; }; struct thread { void join() { }; };