From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 40974 invoked by alias); 24 Jan 2019 11:23:32 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 40962 invoked by uid 89); 24 Jan 2019 11:23:31 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*F:D*ru X-HELO: mail-io1-f68.google.com Received: from mail-io1-f68.google.com (HELO mail-io1-f68.google.com) (209.85.166.68) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 24 Jan 2019 11:23:30 +0000 Received: by mail-io1-f68.google.com with SMTP id k7so4401205iob.6 for ; Thu, 24 Jan 2019 03:23:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=frtk-ru.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to:cc; bh=8uCo/hvp02ODfzNDSK8zsQX/t0YAXi80nC4+vVq4OEY=; b=s8h3JdkQeGZjkb3jwqIJXiJvgNNTS4AQOvuad22xarOvghGcVJq9s0KTpdrCf7FHSi nd83iy8hvzQfj4GkTMCRvhiDRfjcnUUlJ/8bQkZsXwKJfn1KlawriVGn0IEznwgJxWWs F7rwPOR+NoPz88EUm8XEeVug8iysnvdLhAEXtHbX9XhVwBK4NrWe6GvAEcVcrLYhseL4 +w17XIIMhP5rMOMsx2ZBEzRQp1ezNYaS7Lvev5NoyUM8QVO9IJGoQ5d2Icx28RhORueu KGREshnBG+hMqn4Qs4syGeIzgZVWszg020rdn79XTO+Cp08bAeGf5i7CSyWS9LCWDGSu l3MQ== MIME-Version: 1.0 From: "Pavel I. Kryukov" Date: Thu, 24 Jan 2019 11:23:00 -0000 Message-ID: Subject: Re: [PATCH v3 06/17] Replace delete_longjmp_breakpoint_cleanup with a forward_scope_exit type To: palves@redhat.com, gdb-patches@sourceware.org Cc: tom@tromey.com, andrew.burgess@embecosm.com Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2019-01/txt/msg00537.txt.bz2 The patch causes build errors on XCode: $ clang --version Apple LLVM version 10.0.0 (clang-1000.11.45.5) Target: x86_64-apple-darwin17.7.0 Thread model: posix InstalledDir: /Applications/Xcode10.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin In file included from breakpoint.c:34: In file included from ./inferior.h:54: ./common/forward-scope-exit.h:98:7: error: no matching constructor for initialization of 'decltype(std::bind(&delete_longjmp_breakpoint, std::declval()))' (aka '__bind') : m_bind_function (std::bind (function, args...)) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./common/gdb_optional.h:155:19: note: in instantiation of member function 'detail::forward_scope_exit::forward_scope_exit' requested here new (&m_item) T (std::forward(args)...); ^ breakpoint.c:11127:18: note: in instantiation of function template specialization 'gdb::optional >::emplace' requested here lj_deleter.emplace (thread); ^ /Applications/Xcode-10.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:2220:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from '__bind<[...], int &>' to 'const __bind<[...], int>' for 1st argument class __bind ^ /Applications/Xcode-10.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:2220:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from '__bind<[...], int &>' to '__bind<[...], int>' for 1st argument /Applications/Xcode-10.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/functional:2240:16: note: candidate template ignored: requirement 'is_constructible<_Fd, __bind >::value' was not satisfied [with _Gp = std::__1::__bind, _BA = <>] explicit __bind(_Gp&& __f, _BA&& ...__bound_args) ^ 1 error generated. make: *** [breakpoint.o] Error 1 Thanks, -- Pavel