From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1752 invoked by alias); 30 Jul 2014 20:07:08 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 1711 invoked by uid 55); 30 Jul 2014 20:07:04 -0000 From: "paolo at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/57397] Off-by-one error in diagnostic when calling variadic function template with too few arguments Date: Wed, 30 Jul 2014 20:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 4.8.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: paolo at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: paolo.carlini at oracle dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-07/txt/msg02005.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57397 --- Comment #6 from paolo at gcc dot gnu.org --- Author: paolo Date: Wed Jul 30 20:06:29 2014 New Revision: 213310 URL: https://gcc.gnu.org/viewcvs?rev=213310&root=gcc&view=rev Log: /cp 2014-07-30 Paolo Carlini PR c++/57397 * pt.c (unify_arity): Add boolean parameter. (unify_too_few_arguments): Likewise. (type_unification_real): Diagnose correctly insufficient arguments in the presence of trailing variadic parameters; deducing multiple trailing packs as empty is fine. /testsuite 2014-07-30 Paolo Carlini PR c++/57397 * g++.dg/cpp0x/vt-57397-1.C: New. * g++.dg/cpp0x/vt-57397-2.C: Likewise. Added: trunk/gcc/testsuite/g++.dg/cpp0x/vt-57397-1.C trunk/gcc/testsuite/g++.dg/cpp0x/vt-57397-2.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/pt.c trunk/gcc/testsuite/ChangeLog