//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // See https://llvm.org/bugs/show_bug.cgi?id=20002 #include #include using Fn = std::function; struct S : Fn { using function::function; }; int main() { S f1( Fn{} ); S f2(std::allocator_arg, std::allocator{}, Fn{}); }