From patchwork Tue Apr 14 19:04:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Patrick Palka X-Patchwork-Id: 1270683 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gcc.gnu.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=SB72EWPF; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 491vzq1CGQz9sP7 for ; Wed, 15 Apr 2020 05:04:21 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 26A57385DC1A; Tue, 14 Apr 2020 19:04:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 26A57385DC1A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1586891059; bh=LLSQ/ykU0peDP1m+PLbRuPRxEOzRqS/ZwfmEvYWn/9Y=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=SB72EWPFnfyQLXVBFu01ga0FFcHhR2fujw2ZAC2xVw+7VA24Si88tHUWj2WujckKn YVx7SbSiDz8a84IypxRMx023aCMZALcKLh73HnDbi0UEnrfzWTQWmT6DwR5kocGj5S ud39/XH2ZGbMBrOUT7sLw96kdiFxSqsK9jyapd40= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by sourceware.org (Postfix) with ESMTP id D454D385BF83 for ; Tue, 14 Apr 2020 19:04:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D454D385BF83 Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-125-UKo-mifZN2GNA6ATmFNBiw-1; Tue, 14 Apr 2020 15:04:13 -0400 X-MC-Unique: UKo-mifZN2GNA6ATmFNBiw-1 Received: by mail-qt1-f199.google.com with SMTP id y31so1395398qta.16 for ; Tue, 14 Apr 2020 12:04:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=VcSLV8pZiexOGOyJ+yabjVqcN92LK4XaMgJawqs981w=; b=RAKcjCV14CLa15+NYvlMl9DVT9rKUgSSVa85N+nfZj60Qq5FUZYl4i8YxZULxmzNda 9A7zTiIt2lllyb3CXHDQ71zHqlkwq27ky8zKiPzd9UgLPXu40O8iwvl0UJUEY4SlTAVk fHzfMqmdTaxLjp9qeq05BPrDk15xxT1JnswW/zuwyYCkpD0cL/sj3eZOd4QWiNQbsPe7 T/wEDPN/u8AvBWBFF2IMsXPZj9EFA8ke8s2LDaOgL866cZycqF/PSV7HetyWCbqRbMmB k+Uq/MmWXkOZxP+CeD0qeMMhBa5ij4V+iLRn//oHcwCaTJ6f05s1lamwKg32rn1B5Bxf /xQQ== X-Gm-Message-State: AGi0PuZVQkp5nL1YJAIgOQV0JOtaySz8pMpHhXIJe5gAppC9vnYdnYxK V4w0kED/ip3xRo+XBfNIGo8lS27I5Voj74TNf2BkJh+OjkAhUjr5KPSVv/SQuWCI4obuUvRbvey kx0enFACPrfAl7lJmbg== X-Received: by 2002:a37:6117:: with SMTP id v23mr19895827qkb.100.1586891052586; Tue, 14 Apr 2020 12:04:12 -0700 (PDT) X-Google-Smtp-Source: APiQypLbtHXEdZh61+fz16AdC5m6oVlAIIt9zGmIE/3jsykeAKuvww80ynFKXBlmZdfg0Qv9QBcjQg== X-Received: by 2002:a37:6117:: with SMTP id v23mr19895803qkb.100.1586891052323; Tue, 14 Apr 2020 12:04:12 -0700 (PDT) Received: from localhost.localdomain (ool-457d493a.dyn.optonline.net. [69.125.73.58]) by smtp.gmail.com with ESMTPSA id t15sm11895698qtc.64.2020.04.14.12.04.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Apr 2020 12:04:11 -0700 (PDT) To: gcc-patches@gcc.gnu.org Subject: [committed] c++: Add testcase for PR c++/93207 Date: Tue, 14 Apr 2020 15:04:09 -0400 Message-Id: <20200414190409.1528960-1-ppalka@redhat.com> X-Mailer: git-send-email 2.26.0.106.g9fadedd637 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-28.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, 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-Patchwork-Original-From: Patrick Palka via Gcc-patches From: Patrick Palka Reply-To: Patrick Palka Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" gcc/testsuite/ChangeLog: PR c++/93207 * g++.dg/concepts/variadic5.C: New test. --- gcc/testsuite/g++.dg/concepts/variadic5.C | 26 +++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 gcc/testsuite/g++.dg/concepts/variadic5.C diff --git a/gcc/testsuite/g++.dg/concepts/variadic5.C b/gcc/testsuite/g++.dg/concepts/variadic5.C new file mode 100644 index 00000000000..a871079e5de --- /dev/null +++ b/gcc/testsuite/g++.dg/concepts/variadic5.C @@ -0,0 +1,26 @@ +// PR c++/93207 +// { dg-do compile { target concepts } } + +template +concept C = true; + +struct S +{ + template + void f() + requires C; +}; + +template +void S::f() +requires C +{ +} + +void foo() +{ + S s; + s.f<>(); + s.f(); + s.f(); +}