diff --git a/test/std/utilities/function.objects/func.wrap/func.wrap.func/derive_from.pass.cpp b/test/std/utilities/function.objects/func.wrap/func.wrap.func/derive_from.pass.cpp index 3370a2fe9..bc8ab873b 100644 --- a/test/std/utilities/function.objects/func.wrap/func.wrap.func/derive_from.pass.cpp +++ b/test/std/utilities/function.objects/func.wrap/func.wrap.func/derive_from.pass.cpp @@ -7,6 +7,8 @@ // //===----------------------------------------------------------------------===// +// UNSUPPORTED: c++98, c++03 + // // See https://llvm.org/bugs/show_bug.cgi?id=20002 @@ -15,9 +17,10 @@ #include using Fn = std::function; -struct S : Fn { using function::function; }; +struct S : public std::function { using function::function; }; int main() { - S f1( Fn{} ); - S f2(std::allocator_arg, std::allocator{}, Fn{}); -} \ No newline at end of file + S s( [](){} ); + S f1( s ); + S f2(std::allocator_arg, std::allocator{}, s); +}