From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27107 invoked by alias); 28 May 2011 01:55:58 -0000 Received: (qmail 26994 invoked by uid 22791); 28 May 2011 01:55:57 -0000 X-SWARE-Spam-Status: No, hits=-6.4 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 28 May 2011 01:55:37 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4S1tUQm011135 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 27 May 2011 21:55:30 -0400 Received: from [127.0.0.1] (ovpn-113-23.phx2.redhat.com [10.3.113.23]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p4S1tTLX005986; Fri, 27 May 2011 21:55:30 -0400 Message-ID: <4DE05611.1050806@redhat.com> Date: Sat, 28 May 2011 14:03:00 -0000 From: Jason Merrill User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110428 Fedora/3.1.10-1.fc14 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: Nathan Froyd CC: gcc-patches@gcc.gnu.org Subject: Re: [PATCH,c++] describe reasons for function template overload resolution failure References: <20110509224933.GR23480@codesourcery.com> <4DC99B34.7070301@redhat.com> <20110516173938.GA779@nightcrawler> <4DD405D0.4090108@redhat.com> <4DD41733.2020501@codesourcery.com> <4DD42299.2000206@redhat.com> <20110525181526.GA17555@nightcrawler> <4DDE750B.6080508@redhat.com> <20110526190429.GA6119@nightcrawler> <4DDFF833.5000305@redhat.com> <20110527202237.GA851@nightcrawler> In-Reply-To: <20110527202237.GA851@nightcrawler> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-05/txt/msg02228.txt.bz2 On 05/27/2011 04:22 PM, Nathan Froyd wrote: > + /* The PARM is not one we're trying to unify. Just check > + to see if it matches ARG. */ > + int result = !(TREE_CODE (arg) == TREE_CODE (parm) > + && cp_tree_equal (parm, arg)); > + if (result) > + unify_template_parameter_mismatch (explain_p, parm, tparm); This should be unify_template_argument_mismatch (explain_p, parm, arg); So we can drop unify_template_parameter_mismatch. OK with that change. Jason