From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by sourceware.org (Postfix) with ESMTP id 2DE7A3857C6A for ; Tue, 14 Jul 2020 21:33:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2DE7A3857C6A Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-225-DgQ3LGTmM8qMUFa2UmKxBw-1; Tue, 14 Jul 2020 17:33:13 -0400 X-MC-Unique: DgQ3LGTmM8qMUFa2UmKxBw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 36BFA80183C for ; Tue, 14 Jul 2020 21:33:12 +0000 (UTC) Received: from pdp-11.redhat.com (ovpn-115-121.rdu2.redhat.com [10.10.115.121]) by smtp.corp.redhat.com (Postfix) with ESMTP id F23D3710D2 for ; Tue, 14 Jul 2020 21:33:11 +0000 (UTC) From: Marek Polacek To: GCC Patches Subject: [committed] c++: Add new test [PR59978] Date: Tue, 14 Jul 2020 17:33:05 -0400 Message-Id: <20200714213305.426466-1-polacek@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-15.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 14 Jul 2020 21:33:16 -0000 Fixed in r224162. That came without a test so adding this one. Previously, we issued a bogus "too few arguments to function" error. Tested x86_64-pc-linux-gnu, applying to trunk. gcc/testsuite/ChangeLog: PR c++/59978 * g++.dg/cpp0x/vt-59978.C: New test. --- gcc/testsuite/g++.dg/cpp0x/vt-59978.C | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp0x/vt-59978.C diff --git a/gcc/testsuite/g++.dg/cpp0x/vt-59978.C b/gcc/testsuite/g++.dg/cpp0x/vt-59978.C new file mode 100644 index 00000000000..b7cdb19353a --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp0x/vt-59978.C @@ -0,0 +1,16 @@ +// PR c++/59978 +// { dg-do compile { target c++11 } } + +static void testFunc(int i1, int i2) { + (void)i1; + (void)i2; +} + +template void wrapper() { + testFunc(Ints...); +} + +int main() +{ + wrapper<1, 2>(); +} base-commit: b2984e5ada65f417e8704d2e1e81ccd0272b5eb3 -- 2.26.2