[{"id":1759745,"web_url":"http://patchwork.ozlabs.org/comment/1759745/","msgid":"<CAFk2RUb3X+Rb3c+VfwBbex1mFLEFAMvY_PKci7vVmek6DOuQWg@mail.gmail.com>","list_archive_url":null,"date":"2017-08-29T22:25:43","subject":"Re: [C++ PATCH] Make taking the address of an overloaded function a\n\tnon-deduced context","submitter":{"id":5783,"url":"http://patchwork.ozlabs.org/api/people/5783/","name":"Ville Voutilainen","email":"ville.voutilainen@gmail.com"},"content":"On 30 August 2017 at 01:19, Ville Voutilainen\n<ville.voutilainen@gmail.com> wrote:\n> 2017-08-29  Ville Voutilainen  <ville.voutilainen@gmail.com>\n>\n>     Make taking the address of an overloaded function a non-deduced context\n>\n>     cp/\n>\n>     * pt.c (unify_overload_resolution_failure): Return unify_success\n>     instead of unify_invalid.\n>\n>     testsuite/\n>\n>     * g++.dg/overload/template6.C: New.\n\nAh yes, tested on Linux-PPC64. I see some libstdc++ (runtime) failures\nfrom the testsuite, but as far as I can\nsee they are there even before this patch.","headers":{"Return-Path":"<gcc-patches-return-461130-incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list gcc-patches@gcc.gnu.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=gcc-patches-return-461130-incoming=patchwork.ozlabs.org@gcc.gnu.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org\n\theader.b=\"kcXgBkyX\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xhjs14hPyz9sNc\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 30 Aug 2017 08:25:55 +1000 (AEST)","(qmail 73143 invoked by alias); 29 Aug 2017 22:25:48 -0000","(qmail 72778 invoked by uid 89); 29 Aug 2017 22:25:47 -0000","from mail-ua0-f178.google.com (HELO mail-ua0-f178.google.com)\n\t(209.85.217.178) by sourceware.org\n\t(qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tTue, 29 Aug 2017 22:25:46 +0000","by mail-ua0-f178.google.com with SMTP id y50so14313640uay.4 for\n\t<gcc-patches@gcc.gnu.org>; Tue, 29 Aug 2017 15:25:46 -0700 (PDT)","by 10.103.103.135 with HTTP; Tue, 29 Aug 2017 15:25:43 -0700 (PDT)"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender\n\t:mime-version:in-reply-to:references:from:date:message-id\n\t:subject:to:content-type; q=dns; s=default; b=bq3qU3AAazqqmnZ1ET\n\tl9Qi8PSkLvywU6MKtyr0jLTBVByhwPyyid8GSXfyXbG4Vgt/fWhadLUdgre9cGHq\n\tXPXyMOSBVYfolmUkBlDjhCBFzUS8e+FlDQQ98WdNuzRAXHbY/TiKlYKZ77xgKLEw\n\tZG0LC/sDAQ+9kqT7LX1D2MkG0=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender\n\t:mime-version:in-reply-to:references:from:date:message-id\n\t:subject:to:content-type; s=default; bh=rbW69dyj8Qyujua2fYQZWC7a\n\t1fs=; b=kcXgBkyX10I/0IA2rSn2APrptnxGj58b7eBw2pUTL9Lw4pVnLjkF9dH9\n\tacZ/jqYD903V/geLmnCzhLrCTtROBaw7DYXpD1Xk66/q5fy6o5tF27Ij67+VpIYU\n\tvbKusMWpGL+AIiaDAtnYFtC6T2nzHNoHRtsi0glJe7qnD1x+O30=","Mailing-List":"contact gcc-patches-help@gcc.gnu.org; run by ezmlm","Precedence":"bulk","List-Id":"<gcc-patches.gcc.gnu.org>","List-Unsubscribe":"<mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org>","List-Archive":"<http://gcc.gnu.org/ml/gcc-patches/>","List-Post":"<mailto:gcc-patches@gcc.gnu.org>","List-Help":"<mailto:gcc-patches-help@gcc.gnu.org>","Sender":"gcc-patches-owner@gcc.gnu.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-1.9 required=5.0 tests=AWL, BAYES_00,\n\tFREEMAIL_FROM, RCVD_IN_DNSWL_NONE,\n\tSPF_PASS autolearn=ham version=3.3.2 spammy=","X-HELO":"mail-ua0-f178.google.com","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net;\n\ts=20161025;\n\th=x-gm-message-state:mime-version:in-reply-to:references:from:date\n\t:message-id:subject:to;\n\tbh=IsMokCKoYpvmv0+Bqb5s0sXyAOlJIspSxuxR4azbaYs=;\n\tb=FlPgc4MJD/SLxLpYToFCqhrEs4mCbdz4bIBTeFM/R0uueSW+i/z5D7OCfP5NHjwxzE\n\tOTWMHXsa5vtfPfBEvi9L/zKhOfBilmzFHA/NfmaIQXPHaAyN68jxxY5Z04OHzBTuj57h\n\tJVQ6SQevtFvDcrO+kQ72kQh3m7q+afozun/Fe6AxJTLLdRk3jqbjk9fwkmA3ApKlsl0P\n\tZ9yRhStrJFDtZRYeV4BxC9KlJRtrFCtOTIDbExWmrlRebG6fftSF/8rr1+odxd4iz+NL\n\tcweJNkEcaUYBBQCdhzaroXri4PN5ludDsFianJYb/3d4g+TJ87Qly1DlGQNI9jLthvDi\n\tA/Sg==","X-Gm-Message-State":"AHYfb5gLWqU13RWHQEPA7+jx91mMphZ6mDaa0n4gemCGHQ/YoVBkjyUO\tjs846NrYABXidVylzIPpU5nBHNRmRA==","X-Received":"by 10.176.71.235 with SMTP id w43mr1270217uac.65.1504045544095;\n\tTue, 29 Aug 2017 15:25:44 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<CAFk2RUZ+yx4ftYzL5g36B90-k_4tG2ahqKJ5ZC9ouxteLkvtEQ@mail.gmail.com>","References":"<CAFk2RUZ+yx4ftYzL5g36B90-k_4tG2ahqKJ5ZC9ouxteLkvtEQ@mail.gmail.com>","From":"Ville Voutilainen <ville.voutilainen@gmail.com>","Date":"Wed, 30 Aug 2017 01:25:43 +0300","Message-ID":"<CAFk2RUb3X+Rb3c+VfwBbex1mFLEFAMvY_PKci7vVmek6DOuQWg@mail.gmail.com>","Subject":"Re: [C++ PATCH] Make taking the address of an overloaded function a\n\tnon-deduced context","To":"\"gcc-patches@gcc.gnu.org\" <gcc-patches@gcc.gnu.org>,\n\tJason Merrill <jason@redhat.com>","Content-Type":"text/plain; charset=\"UTF-8\""}},{"id":1760107,"web_url":"http://patchwork.ozlabs.org/comment/1760107/","msgid":"<CAFk2RUYD8HWYF1MKa5rA18y5denasPMNwcNAMEa1itiCPZjeEQ@mail.gmail.com>","list_archive_url":null,"date":"2017-08-30T12:19:54","subject":"Re: [C++ PATCH] Make taking the address of an overloaded function a\n\tnon-deduced context","submitter":{"id":5783,"url":"http://patchwork.ozlabs.org/api/people/5783/","name":"Ville Voutilainen","email":"ville.voutilainen@gmail.com"},"content":"On 30 August 2017 at 01:25, Ville Voutilainen\n<ville.voutilainen@gmail.com> wrote:\n> On 30 August 2017 at 01:19, Ville Voutilainen\n> <ville.voutilainen@gmail.com> wrote:\n>> 2017-08-29  Ville Voutilainen  <ville.voutilainen@gmail.com>\n>>\n>>     Make taking the address of an overloaded function a non-deduced context\n>>\n>>     cp/\n>>\n>>     * pt.c (unify_overload_resolution_failure): Return unify_success\n>>     instead of unify_invalid.\n>>\n>>     testsuite/\n>>\n>>     * g++.dg/overload/template6.C: New.\n>\n> Ah yes, tested on Linux-PPC64. I see some libstdc++ (runtime) failures\n> from the testsuite, but as far as I can\n> see they are there even before this patch.\n\n..and were caused by an unclean libstdc++ build on my end. The patch\npasses the full testsuite with\nno regressions.","headers":{"Return-Path":"<gcc-patches-return-461154-incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list gcc-patches@gcc.gnu.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=gcc-patches-return-461154-incoming=patchwork.ozlabs.org@gcc.gnu.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org\n\theader.b=\"vqRwLQ48\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xj4MX5kc4z9sQl\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 30 Aug 2017 22:20:07 +1000 (AEST)","(qmail 41050 invoked by alias); 30 Aug 2017 12:19:59 -0000","(qmail 41039 invoked by uid 89); 30 Aug 2017 12:19:58 -0000","from mail-ua0-f194.google.com (HELO mail-ua0-f194.google.com)\n\t(209.85.217.194) by sourceware.org\n\t(qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tWed, 30 Aug 2017 12:19:57 +0000","by mail-ua0-f194.google.com with SMTP id 105so2534133uad.1 for\n\t<gcc-patches@gcc.gnu.org>; Wed, 30 Aug 2017 05:19:56 -0700 (PDT)","by 10.103.103.135 with HTTP; Wed, 30 Aug 2017 05:19:54 -0700 (PDT)"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender\n\t:mime-version:in-reply-to:references:from:date:message-id\n\t:subject:to:content-type; q=dns; s=default; b=ybRCcu3RTXlWzKLBd3\n\t8hkxFOU2Qs9KgOVSPIgA0D9bpWPqYe+1ZOGFGwOOV2NtTNBCVbjei0Y0Z36PlqQK\n\tL5KwfQDDAiyt0B3O3/7lVwPr3bbu5quNJn51qXQTxJqLlZa1iVrjdfw07O9QAxu2\n\tnhg4KsQPA19dzrD+oVa6K8QXQ=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender\n\t:mime-version:in-reply-to:references:from:date:message-id\n\t:subject:to:content-type; s=default; bh=FbROhCPWlNfhufmGic/hfH7R\n\tPgg=; b=vqRwLQ488hqKuOOtp61B+iJ6LdJs/+vNlvJamiTz5inVylIR0/VMug8S\n\tiaNhM35XLQ01hKJZmwYfwZ93tHSH5tjswnulA9v1Ol93CFK1AEZzzCUzBcI3N47T\n\t8Hktp3zi6jdCh03nxgSz7Yd3UuT3dVbYFkRVHJUCAYxUBzq4KYc=","Mailing-List":"contact gcc-patches-help@gcc.gnu.org; run by ezmlm","Precedence":"bulk","List-Id":"<gcc-patches.gcc.gnu.org>","List-Unsubscribe":"<mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org>","List-Archive":"<http://gcc.gnu.org/ml/gcc-patches/>","List-Post":"<mailto:gcc-patches@gcc.gnu.org>","List-Help":"<mailto:gcc-patches-help@gcc.gnu.org>","Sender":"gcc-patches-owner@gcc.gnu.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-1.4 required=5.0 tests=AWL, BAYES_00,\n\tFREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM,\n\tSPF_PASS autolearn=no version=3.3.2 spammy=","X-HELO":"mail-ua0-f194.google.com","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net;\n\ts=20161025;\n\th=x-gm-message-state:mime-version:in-reply-to:references:from:date\n\t:message-id:subject:to;\n\tbh=VSS1zGUNpihsD9V0mG4+TqQfvS8wr5L7VMW1uva2NiI=;\n\tb=s/BeK4T+LmNW9mvT90jfLCWM6ronlqTYHP67/tUL+VIaBAFgbSse0EIlbPVCUF7xgr\n\tXKb/7yIDx2dFS+gYHzpkK9wlyK47yfVOrm58Pd+wD+6zyANyQUCsUhZtnID1yslVHUAY\n\thoAM9JaX8XkuNLCnnDlmC50TnAbBiA0CcHzHlvW+3NYM1By1lHaHT8RI2Qfpdfcv2+jZ\n\tU7QR7v1Gn0q4MPQliZF/KbfiogkwKL0t2082cEbETPTpOyI8MIi84CfbQb3VaNstZgY8\n\tjPDCLg4SiWQmCkE3h+i6gm20jVCTBa4GXx4ti8X/cK9qwjodFOSsWbYLX6IjEBcj9Kcz\n\tXQYg==","X-Gm-Message-State":"AHYfb5hhqqngu1WXbUIL+uJhKo8Q8TuVjRd3APd3Q2aGSthFzQAYjNuk\tuCW4pf/Ktx3/UKFHJMn+52tpx31K3A==","X-Received":"by 10.176.71.235 with SMTP id w43mr839659uac.65.1504095594947;\n\tWed, 30 Aug 2017 05:19:54 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<CAFk2RUb3X+Rb3c+VfwBbex1mFLEFAMvY_PKci7vVmek6DOuQWg@mail.gmail.com>","References":"<CAFk2RUZ+yx4ftYzL5g36B90-k_4tG2ahqKJ5ZC9ouxteLkvtEQ@mail.gmail.com>\n\t<CAFk2RUb3X+Rb3c+VfwBbex1mFLEFAMvY_PKci7vVmek6DOuQWg@mail.gmail.com>","From":"Ville Voutilainen <ville.voutilainen@gmail.com>","Date":"Wed, 30 Aug 2017 15:19:54 +0300","Message-ID":"<CAFk2RUYD8HWYF1MKa5rA18y5denasPMNwcNAMEa1itiCPZjeEQ@mail.gmail.com>","Subject":"Re: [C++ PATCH] Make taking the address of an overloaded function a\n\tnon-deduced context","To":"\"gcc-patches@gcc.gnu.org\" <gcc-patches@gcc.gnu.org>,\n\tJason Merrill <jason@redhat.com>","Content-Type":"text/plain; charset=\"UTF-8\""}},{"id":1760305,"web_url":"http://patchwork.ozlabs.org/comment/1760305/","msgid":"<CADzB+2nsxaSSMPmg+dxgvCJdYT4frb8j483Crv75SdFRB3Q5Og@mail.gmail.com>","list_archive_url":null,"date":"2017-08-30T16:07:43","subject":"Re: [C++ PATCH] Make taking the address of an overloaded function a\n\tnon-deduced context","submitter":{"id":4337,"url":"http://patchwork.ozlabs.org/api/people/4337/","name":"Jason Merrill","email":"jason@redhat.com"},"content":"On Tue, Aug 29, 2017 at 6:19 PM, Ville Voutilainen\n<ville.voutilainen@gmail.com> wrote:\n> 2017-08-29  Ville Voutilainen  <ville.voutilainen@gmail.com>\n>\n>     Make taking the address of an overloaded function a non-deduced context\n>\n>     cp/\n>\n>     * pt.c (unify_overload_resolution_failure): Return unify_success\n>     instead of unify_invalid.\n\nPlease also remove the error.  OK with that change.\n\nJason","headers":{"Return-Path":"<gcc-patches-return-461175-incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list gcc-patches@gcc.gnu.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=gcc-patches-return-461175-incoming=patchwork.ozlabs.org@gcc.gnu.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org\n\theader.b=\"Yj4qsIxQ\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xj9Ql4SMrz9sPt\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 31 Aug 2017 02:08:13 +1000 (AEST)","(qmail 62425 invoked by alias); 30 Aug 2017 16:08:07 -0000","(qmail 62416 invoked by uid 89); 30 Aug 2017 16:08:07 -0000","from mail-io0-f182.google.com (HELO mail-io0-f182.google.com)\n\t(209.85.223.182) by sourceware.org\n\t(qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tWed, 30 Aug 2017 16:08:06 +0000","by mail-io0-f182.google.com with SMTP id g33so6439441ioj.3 for\n\t<gcc-patches@gcc.gnu.org>; Wed, 30 Aug 2017 09:08:05 -0700 (PDT)","by 10.107.181.23 with HTTP; Wed, 30 Aug 2017 09:07:43 -0700 (PDT)"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender\n\t:mime-version:in-reply-to:references:from:date:message-id\n\t:subject:to:cc:content-type; q=dns; s=default; b=xbZ4Qk215edxkPn\n\tQoLeD8EVECvnx6QstgAJVXMFQF8xpHdgoMXhMlR0Uzt+EG0s5kOlUD6J/nwydDx4\n\tyUe5jXr3OjJGmH2QDYXBgyyW3t1KFmIvqt2n2tyFIpSJnJ6ZUpYY/DZPGIUQWlZg\n\tOwoJmXgyhUklisF90oCHKKI+8LqA=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender\n\t:mime-version:in-reply-to:references:from:date:message-id\n\t:subject:to:cc:content-type; s=default; bh=QbnS9KfdTvLQa6NETNYhf\n\tC/rsPg=; b=Yj4qsIxQqyHfirg1hi5ED9Hzn52/7eqoGG1vnjs3lQlr4sUzGw8z0\n\tSTkKks259Rl2X8DnEDTCt9d4WRTox5rat17rUwNRLvoMNgu7b4pbkdYLU+5qDLll\n\tJomZUtMuVVh3l/z8QYNp+u9gNPOTRi+nw/ygeEAkk9uWOhQJUlnwOA=","Mailing-List":"contact gcc-patches-help@gcc.gnu.org; run by ezmlm","Precedence":"bulk","List-Id":"<gcc-patches.gcc.gnu.org>","List-Unsubscribe":"<mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org>","List-Archive":"<http://gcc.gnu.org/ml/gcc-patches/>","List-Post":"<mailto:gcc-patches@gcc.gnu.org>","List-Help":"<mailto:gcc-patches-help@gcc.gnu.org>","Sender":"gcc-patches-owner@gcc.gnu.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-1.6 required=5.0 tests=AWL, BAYES_00,\n\tKAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE,\n\tRCVD_IN_SORBS_SPAM autolearn=no version=3.3.2\n\tspammy=Hx-languages-length:478","X-HELO":"mail-io0-f182.google.com","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net;\n\ts=20161025;\n\th=x-gm-message-state:mime-version:in-reply-to:references:from:date\n\t:message-id:subject:to:cc;\n\tbh=xUEySJ7bUHFNsKkpnES6aPriT0B9GyKS0LsukxRQWN8=;\n\tb=ECmEB3EkmH/iVZp2RhfNXh0CmFEzee3Ydm/QNFwyD9ZZ7jaIz5vvV18hxAuhMrRr3F\n\tjyK12zMBjSx+LXSab8p2Ti8GU0VIZduw7AfSggVT/1YNTniJ+1o9q7Ab/pUX0+eK2H+Z\n\tjG/Akz20SoUlhAD+FOE+i+VjrELBbd62s2n0QagOlh8JrWBrRcNImko5IeuLfpcx+VGm\n\tDzjhE1/4J4SfUcTCoxFVEFT5krpivjV5x0X/9uGliEJa4UuRAsPOUITu7XLO+oJ42qiK\n\tJixOMSwKrkae0ofQvw950AAIdbCZRQ7Sm1j9L3V4crIXWe9MfDUqHgRiCLGpctzIxqRz\n\tyhjg==","X-Gm-Message-State":"AHPjjUi5i9DOmWy46sg09BplBA/b56LWSK6kcZ0sT18tzwQzNNfYuPdR\tkD73ZwxmrN/8eJrrUWqOpkWP+3hu+oac","X-Received":"by 10.107.164.67 with SMTP id n64mr1901163ioe.282.1504109284226;\n\tWed, 30 Aug 2017 09:08:04 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<CAFk2RUZ+yx4ftYzL5g36B90-k_4tG2ahqKJ5ZC9ouxteLkvtEQ@mail.gmail.com>","References":"<CAFk2RUZ+yx4ftYzL5g36B90-k_4tG2ahqKJ5ZC9ouxteLkvtEQ@mail.gmail.com>","From":"Jason Merrill <jason@redhat.com>","Date":"Wed, 30 Aug 2017 12:07:43 -0400","Message-ID":"<CADzB+2nsxaSSMPmg+dxgvCJdYT4frb8j483Crv75SdFRB3Q5Og@mail.gmail.com>","Subject":"Re: [C++ PATCH] Make taking the address of an overloaded function a\n\tnon-deduced context","To":"Ville Voutilainen <ville.voutilainen@gmail.com>","Cc":"\"gcc-patches@gcc.gnu.org\" <gcc-patches@gcc.gnu.org>","Content-Type":"text/plain; charset=\"UTF-8\"","X-IsSubscribed":"yes"}},{"id":1760345,"web_url":"http://patchwork.ozlabs.org/comment/1760345/","msgid":"<CAFk2RUZtuvA=xP4Dth1-ahD3QWD1yJewyQ6-iRu7+gx1dTnPLA@mail.gmail.com>","list_archive_url":null,"date":"2017-08-30T17:08:51","subject":"Re: [C++ PATCH] Make taking the address of an overloaded function a\n\tnon-deduced context","submitter":{"id":5783,"url":"http://patchwork.ozlabs.org/api/people/5783/","name":"Ville Voutilainen","email":"ville.voutilainen@gmail.com"},"content":"On 30 August 2017 at 19:07, Jason Merrill <jason@redhat.com> wrote:\n> Please also remove the error.  OK with that change.\n\n\nHere's a new and much improved version as discussed on IRC. Tested on\nLinux-PPC64.\nOk for trunk?\n\n2017-08-30  Ville Voutilainen  <ville.voutilainen@gmail.com>\n\n    Make taking the address of an overloaded function a non-deduced context\n\n    cp/\n\n    * pt.c (unify_overload_resolution_failure): Remove.\n    (unify_one_argument): Adjust.\n\n    testsuite/\n\n    * g++.dg/overload/template6.C: New.\ndiff --git a/gcc/cp/pt.c b/gcc/cp/pt.c\nindex 564ffb0..5cfe292 100644\n--- a/gcc/cp/pt.c\n+++ b/gcc/cp/pt.c\n@@ -6363,16 +6363,6 @@ unify_template_argument_mismatch (bool explain_p, tree parm, tree arg)\n   return unify_invalid (explain_p);\n }\n \n-static int\n-unify_overload_resolution_failure (bool explain_p, tree arg)\n-{\n-  if (explain_p)\n-    inform (input_location,\n-\t    \"  could not resolve address from overloaded function %qE\",\n-\t    arg);\n-  return unify_invalid (explain_p);\n-}\n-\n /* Attempt to convert the non-type template parameter EXPR to the\n    indicated TYPE.  If the conversion is successful, return the\n    converted value.  If the conversion is unsuccessful, return\n@@ -19090,12 +19080,10 @@ unify_one_argument (tree tparms, tree targs, tree parm, tree arg,\n \t\t templates and at most one of a set of\n \t\t overloaded functions provides a unique\n \t\t match.  */\n-\n-\t      if (resolve_overloaded_unification\n-\t\t  (tparms, targs, parm, arg, strict,\n-\t\t   arg_strict, explain_p))\n-\t\treturn unify_success (explain_p);\n-\t      return unify_overload_resolution_failure (explain_p, arg);\n+\t      resolve_overloaded_unification (tparms, targs, parm,\n+\t\t\t\t\t      arg, strict,\n+\t\t\t\t\t      arg_strict, explain_p);\n+\t      return unify_success (explain_p);\n \t    }\n \n \t  arg_expr = arg;\ndiff --git a/gcc/testsuite/g++.dg/overload/template6.C b/gcc/testsuite/g++.dg/overload/template6.C\nnew file mode 100644\nindex 0000000..f2650aa\n--- /dev/null\n+++ b/gcc/testsuite/g++.dg/overload/template6.C\n@@ -0,0 +1,47 @@\n+// { dg-do compile { target c++11 } }\n+\n+template <typename>\n+struct is_function {\n+  static constexpr bool value = false;\n+};\n+\n+template <typename R, typename ...Args>\n+struct is_function<R(Args...)>\n+{\n+  static constexpr bool value = true;\n+};\n+\n+template<bool, typename> struct enable_if {};\n+\n+template<typename T> struct enable_if<true, T> \n+{\n+  typedef T type;\n+};\n+\n+template <class T>\n+struct remove_pointer\n+{\n+  typedef T type;\n+};\n+\n+template <class T>\n+struct remove_pointer<T*>\n+{\n+  typedef T type;\n+};\n+\n+void f(int) {}\n+void f(double) {}\n+\n+template <class T>\n+struct X\n+{\n+  template <class U=T,\n+\t    typename enable_if<is_function<\n+\t\t\t\t typename remove_pointer<U>::type>::value,\n+\t\t\t       bool>::type = false> X(U&&) {}\n+};\n+\n+int main() {\n+  X<void(*)(int)> x0(f);\n+}","headers":{"Return-Path":"<gcc-patches-return-461181-incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list gcc-patches@gcc.gnu.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=gcc-patches-return-461181-incoming=patchwork.ozlabs.org@gcc.gnu.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org\n\theader.b=\"suwXqCN/\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xjBn02tfyz9sNn\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 31 Aug 2017 03:09:07 +1000 (AEST)","(qmail 10212 invoked by alias); 30 Aug 2017 17:08:55 -0000","(qmail 9886 invoked by uid 89); 30 Aug 2017 17:08:55 -0000","from mail-ua0-f176.google.com (HELO mail-ua0-f176.google.com)\n\t(209.85.217.176) by sourceware.org\n\t(qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tWed, 30 Aug 2017 17:08:53 +0000","by mail-ua0-f176.google.com with SMTP id g11so20723001uah.2 for\n\t<gcc-patches@gcc.gnu.org>; Wed, 30 Aug 2017 10:08:53 -0700 (PDT)","by 10.103.103.135 with HTTP; Wed, 30 Aug 2017 10:08:51 -0700 (PDT)"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender\n\t:mime-version:in-reply-to:references:from:date:message-id\n\t:subject:to:cc:content-type; q=dns; s=default; b=KF2vqI5rNhS1vSQ\n\tTf++e4r/Adeu/o+xziD75vNV4LKy7mZ1EPaaHufGUMQZEf118EZQ2lawwg3gTuuv\n\tbP3pHEye9h9lr8L0m/I5HNpM5/PyG1+8zlohQXQW5JnohkBJu2YGuZW5D6P/VPGe\n\ttEHg0+mbBAeqzvKICcuQiidNe/Ag=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender\n\t:mime-version:in-reply-to:references:from:date:message-id\n\t:subject:to:cc:content-type; s=default; bh=A1YHCanrHAg3Sek1PFBTP\n\tEqp7iI=; b=suwXqCN/1e8eRxsU66lfeBh+gQygg/rUtlGs4MLFKvvwDv6VmUt40\n\tl2cSQxZc1KAlvWuetjC2Powx1Ei6aUm62Q9BK1pjYVhr1kixy3NDJ6xYIwQiXZoW\n\tC7BIHYHsA6uwuvIqDK6ppYFC164NoTvJLZuG3UlrfFcLr4J15MoZnA=","Mailing-List":"contact gcc-patches-help@gcc.gnu.org; run by ezmlm","Precedence":"bulk","List-Id":"<gcc-patches.gcc.gnu.org>","List-Unsubscribe":"<mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org>","List-Archive":"<http://gcc.gnu.org/ml/gcc-patches/>","List-Post":"<mailto:gcc-patches@gcc.gnu.org>","List-Help":"<mailto:gcc-patches-help@gcc.gnu.org>","Sender":"gcc-patches-owner@gcc.gnu.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-23.9 required=5.0 tests=AWL, BAYES_00,\n\tFREEMAIL_FROM, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2,\n\tGIT_PATCH_3, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM,\n\tSPF_PASS autolearn=ham version=3.3.2 spammy=unsuccessful,\n\tHx-languages-length:2756","X-HELO":"mail-ua0-f176.google.com","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net;\n\ts=20161025;\n\th=x-gm-message-state:mime-version:in-reply-to:references:from:date\n\t:message-id:subject:to:cc;\n\tbh=ydq6TgRG8PQ7HmAM8P2sE58rWAbKfuwrT2AAVz9/GXY=;\n\tb=o66eJ7C2TevPX4YHo5iIQiebmyNx7pUogn4604j4J+vVRgqXJKTLKF3VEPJDGgQhfR\n\tAKNORBhaBZlISQYUK+POh8Rk4KMJayCbZwMJNjU4apZuYm6r2wLPHDRZJ9vD/NBc05Vl\n\t9QI0LJRdErlqykzvUf+yru8L5inDU/n3QnCCMB5aryNLAkZaYrSv3S7zo6tMyu48g0X8\n\tWcKnMcFt4Bqxs+EN8XQMJG4PEMU5Tdf8Z1P9pgPNKZFvoSpRFuZUvI0ZC3F9ZX1n53jg\n\ttrQV50raqtwAfc6XXgcgthik7MMm+Ow53vEQ2VT/R/5u3/Uk3c5htvn/E1QshlKyd6rW\n\t2PqA==","X-Gm-Message-State":"AHPjjUhaugEzeWJHqikT65sJWcC6x5XK1uJLnrRQo4K0vipbakDzcvzG\tW2gbf4OtA0cUWCqOxUWDFwOQIF7RF2F9","X-Received":"by 10.176.9.131 with SMTP id x3mr1415893uag.171.1504112931849;\n\tWed, 30 Aug 2017 10:08:51 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<CADzB+2nsxaSSMPmg+dxgvCJdYT4frb8j483Crv75SdFRB3Q5Og@mail.gmail.com>","References":"<CAFk2RUZ+yx4ftYzL5g36B90-k_4tG2ahqKJ5ZC9ouxteLkvtEQ@mail.gmail.com>\n\t<CADzB+2nsxaSSMPmg+dxgvCJdYT4frb8j483Crv75SdFRB3Q5Og@mail.gmail.com>","From":"Ville Voutilainen <ville.voutilainen@gmail.com>","Date":"Wed, 30 Aug 2017 20:08:51 +0300","Message-ID":"<CAFk2RUZtuvA=xP4Dth1-ahD3QWD1yJewyQ6-iRu7+gx1dTnPLA@mail.gmail.com>","Subject":"Re: [C++ PATCH] Make taking the address of an overloaded function a\n\tnon-deduced context","To":"Jason Merrill <jason@redhat.com>","Cc":"\"gcc-patches@gcc.gnu.org\" <gcc-patches@gcc.gnu.org>","Content-Type":"multipart/mixed; boundary=\"f403043c4c58019c9a0557fb958b\""}},{"id":1760478,"web_url":"http://patchwork.ozlabs.org/comment/1760478/","msgid":"<CADzB+2nwFsHPTuqJQCxf787ZY=A0JpomZWCQC9yewkykyVdF3w@mail.gmail.com>","list_archive_url":null,"date":"2017-08-30T20:41:57","subject":"Re: [C++ PATCH] Make taking the address of an overloaded function a\n\tnon-deduced context","submitter":{"id":4337,"url":"http://patchwork.ozlabs.org/api/people/4337/","name":"Jason Merrill","email":"jason@redhat.com"},"content":"On Wed, Aug 30, 2017 at 1:08 PM, Ville Voutilainen\n<ville.voutilainen@gmail.com> wrote:\n> On 30 August 2017 at 19:07, Jason Merrill <jason@redhat.com> wrote:\n>> Please also remove the error.  OK with that change.\n>\n> Here's a new and much improved version as discussed on IRC. Tested on\n> Linux-PPC64.\n> Ok for trunk?\n>\n> 2017-08-30  Ville Voutilainen  <ville.voutilainen@gmail.com>\n>\n>     Make taking the address of an overloaded function a non-deduced context\n>\n>     cp/\n>\n>     * pt.c (unify_overload_resolution_failure): Remove.\n>     (unify_one_argument): Adjust.\n\nPlease add a comment before unify_success along the lines of \"If there\nisn't a unique match, this is a non-deduced context, so we still\nsucceed.\"  OK with that change.\n\nJason","headers":{"Return-Path":"<gcc-patches-return-461193-incoming=patchwork.ozlabs.org@gcc.gnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","mailing list gcc-patches@gcc.gnu.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org\n\t(client-ip=209.132.180.131; helo=sourceware.org;\n\tenvelope-from=gcc-patches-return-461193-incoming=patchwork.ozlabs.org@gcc.gnu.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org\n\theader.b=\"bmPMnrkz\"; dkim-atps=neutral","sourceware.org; auth=none"],"Received":["from sourceware.org (server1.sourceware.org [209.132.180.131])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xjHWN1nYxz9s06\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 31 Aug 2017 06:42:38 +1000 (AEST)","(qmail 127611 invoked by alias); 30 Aug 2017 20:42:31 -0000","(qmail 127600 invoked by uid 89); 30 Aug 2017 20:42:30 -0000","from mail-io0-f180.google.com (HELO mail-io0-f180.google.com)\n\t(209.85.223.180) by sourceware.org\n\t(qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;\n\tWed, 30 Aug 2017 20:42:20 +0000","by mail-io0-f180.google.com with SMTP id s101so10985670ioe.0 for\n\t<gcc-patches@gcc.gnu.org>; Wed, 30 Aug 2017 13:42:20 -0700 (PDT)","by 10.107.181.23 with HTTP; Wed, 30 Aug 2017 13:41:57 -0700 (PDT)"],"DomainKey-Signature":"a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender\n\t:mime-version:in-reply-to:references:from:date:message-id\n\t:subject:to:cc:content-type; q=dns; s=default; b=uBmD9iMngdbbvRh\n\tjY35bNJQhx2aPbePPBOf37f2ga27xEbjupmH0XRNm4UF0umgxB4Vua/NYdZgp7IS\n\t10pdA+hXdkffxI/bB2h1dQDtd+pn0dIOVq2X2ckqqf7NAUFL0tgtibepbHFyMXzC\n\teaoYFVLXKBDdifJO9SnztKcmACS0=","DKIM-Signature":"v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id\n\t:list-unsubscribe:list-archive:list-post:list-help:sender\n\t:mime-version:in-reply-to:references:from:date:message-id\n\t:subject:to:cc:content-type; s=default; bh=pl9GNHKxB1d0NSM74eMOr\n\t1BEMhw=; b=bmPMnrkzdpdOva//wTQjTGsXEbcHcyG8bd0gtECMrdV+4BWfuEVgJ\n\t1CKMbb7ttj87ykJwnc7vkE6RLzhI1GoAXHOwaVUkxRLJ+Zjy51Lc0BpPWeziwb9H\n\tQ/z2HuDoj8AsrdmQOhl+yaqU4WWXu4hZ1+dQK1aSwOfqw//K5kJHcA=","Mailing-List":"contact gcc-patches-help@gcc.gnu.org; run by ezmlm","Precedence":"bulk","List-Id":"<gcc-patches.gcc.gnu.org>","List-Unsubscribe":"<mailto:gcc-patches-unsubscribe-incoming=patchwork.ozlabs.org@gcc.gnu.org>","List-Archive":"<http://gcc.gnu.org/ml/gcc-patches/>","List-Post":"<mailto:gcc-patches@gcc.gnu.org>","List-Help":"<mailto:gcc-patches-help@gcc.gnu.org>","Sender":"gcc-patches-owner@gcc.gnu.org","X-Virus-Found":"No","X-Spam-SWARE-Status":"No, score=-1.6 required=5.0 tests=AWL, BAYES_00,\n\tKAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_NONE,\n\tRCVD_IN_SORBS_SPAM autolearn=no version=3.3.2 spammy=","X-HELO":"mail-io0-f180.google.com","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net;\n\ts=20161025;\n\th=x-gm-message-state:mime-version:in-reply-to:references:from:date\n\t:message-id:subject:to:cc;\n\tbh=mCcmoS3glHwbEvxuY3FY3/ifkfe8ap+2ZpIJm6Shh8w=;\n\tb=i7boO1+x9qwKnxdEogbylDzic/pKlSGKorKOJSdCfR0wvmwmcvztvkIplPtJIfB5f+\n\tMLJXsKfbZ1hh64cf5SFkVmZnbWxQE3JZKw0+5BUPrxJytpnll0EsD2kVLSaxOlAO/5t6\n\tNSF9nfHHgIL50/T5kE7kb6dggiyhvFE/J02HsGVdLPqEPKuDYIGzyT6TNh8Lq9DmG+Pb\n\tVjHl07m6uaVG8VZC+MQ9pIRUmOVVNaLNyxFYhTOokU7vvv+hCAWZqjTaWZa+xcGVCFFf\n\t5++XYU6MRTeYP7odhmymeoJlraRMyN8PuJCp7JZ8yhboWF+TweOm3bJs+d2tfgSN3UoN\n\tvmcw==","X-Gm-Message-State":"AHYfb5hBZJUp3m/ulOpe3nIrrqX1hDdjuS98yFJzVdxEaVCbNFFO2bm0\tnLIhvoLcowt/PEbTEC+PZ6Lzi6VasAGy","X-Received":"by 10.36.242.134 with SMTP id j128mr3172988ith.143.1504125738334;\n\tWed, 30 Aug 2017 13:42:18 -0700 (PDT)","MIME-Version":"1.0","In-Reply-To":"<CAFk2RUZtuvA=xP4Dth1-ahD3QWD1yJewyQ6-iRu7+gx1dTnPLA@mail.gmail.com>","References":"<CAFk2RUZ+yx4ftYzL5g36B90-k_4tG2ahqKJ5ZC9ouxteLkvtEQ@mail.gmail.com>\n\t<CADzB+2nsxaSSMPmg+dxgvCJdYT4frb8j483Crv75SdFRB3Q5Og@mail.gmail.com>\n\t<CAFk2RUZtuvA=xP4Dth1-ahD3QWD1yJewyQ6-iRu7+gx1dTnPLA@mail.gmail.com>","From":"Jason Merrill <jason@redhat.com>","Date":"Wed, 30 Aug 2017 16:41:57 -0400","Message-ID":"<CADzB+2nwFsHPTuqJQCxf787ZY=A0JpomZWCQC9yewkykyVdF3w@mail.gmail.com>","Subject":"Re: [C++ PATCH] Make taking the address of an overloaded function a\n\tnon-deduced context","To":"Ville Voutilainen <ville.voutilainen@gmail.com>","Cc":"\"gcc-patches@gcc.gnu.org\" <gcc-patches@gcc.gnu.org>","Content-Type":"text/plain; charset=\"UTF-8\"","X-IsSubscribed":"yes"}}]