Message ID | 20231116155108.2207222-1-ppalka@redhat.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b909:0:b0:403:3b70:6f57 with SMTP id t9csp3302098vqg; Thu, 16 Nov 2023 07:51:57 -0800 (PST) X-Google-Smtp-Source: AGHT+IE7T7XxDrF7u9N96Tlsz4Iivd0r06Cgzq19ja+3KswCOLysDrRpMbUmelX65A8972uYerhb X-Received: by 2002:a05:6358:880b:b0:168:f48f:4414 with SMTP id hv11-20020a056358880b00b00168f48f4414mr12275702rwb.25.1700149917059; Thu, 16 Nov 2023 07:51:57 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1700149917; cv=pass; d=google.com; s=arc-20160816; b=JB0m/KoC3x25O9F2eE39eCR/wHX2WzX/LiixuZ1yZ6re2Jact4nVUKZzB5fJlXbysv i6z/dmS7VroVT5bRHXBP7DBJqCAUW3710eby7TXVxXftM3/yQPTvP8rYSEW/cSz0hN9S YnvOAD4oMWnca5GDLl974k33hP9LyPOPV9uBg64lNgpGKA7sR1GWkDIjAVZyzZre0kZM 9+42Ctrm+Q65hZYMSB207dFzKq6siloeBn2mQZzELN7z5ScGDATQy10XhRHUWVfAw+gj h3XOOQFwo8qr53LDU8aTrWXCCN9BonVJYyg6z+ZDGDNtRW798piy1YPERyt/M4ZQhieC KAnQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=QzhPueA5ao8TFXAy8gTilfQ0kNTCQFCYGYN1cJgbUdc=; fh=1Hi9m88IqcWZGtfSxUrMGG+GBgL26N02X1SANXM6iTs=; b=EQq9gByX2hKJmlpD0E1iMHwYCemBYa+r0quOL1Ong7DEQw3vkD9QqvcwpF4EnVKCEz 7U2ZB2EbhabLGn260fzpT6iy32PXeXgRthvcwUTIOR5qpcSrpQP4w+jsDKxYwDtJeOVj VSN7ZLcDg82I4FJ4qnXjVABEHxalSrGVwR3kgGSH8t2gaWv8Jak92TLLo1hJnnf7ks0a WrDebXDM+Pxjyn7zcA0V7R3Ncee4Bdt0nbZKCpoHYl6YgqO4aucW76Vv+ZoqwI8JqC/5 pIP97RhT+Y5+cxkqir50FKPW6o1hRJqHvbM/JWoNfwSG2Ns19xGtpRiE6qEfnXhDpny+ qeRA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DxUZ7jAe; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id u2-20020a0ced22000000b0065afc653d98si11873047qvq.264.2023.11.16.07.51.56 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 07:51:57 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=DxUZ7jAe; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7B3AC3856975 for <ouuuleilei@gmail.com>; Thu, 16 Nov 2023 15:51:56 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 59B5F3857BB5 for <gcc-patches@gcc.gnu.org>; Thu, 16 Nov 2023 15:51:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 59B5F3857BB5 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 59B5F3857BB5 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700149877; cv=none; b=Z6ErqPk7Sm/tKfBCfIc39sQNIntvbbjngsn51ynMANN9ndpXGMhoybCJEGK6nMPeFJacO3m4PeOCfyg+ROagcGSwcGOEDvIYIci+jgwiPEURA6ZZVMJzdedFknQQKU21CkIWFaxGvaRQH3LLAkgF5pw6vYxeh9rqzF4pJPOe1XA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700149877; c=relaxed/simple; bh=Zx0l/UKbkNy3qmTlrU1a1lLpgxYZr1ktLUPLwgeQRts=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=q8G4/GowQTs9WDNQr/xdmXRLGxgrQqOfH9olyf5rw0FLJda3YQzJ+sjpCcLuYR2qvBIhttBj4usikRAtYL5aCg6lD7GSG1t/AkAd3LyOrXdHJLQpOSVhvx+PWOb6eJhUQTiBY48tI5eyGdM5DxZYSnOHMateYjA04SyQwh1E2HU= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1700149875; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QzhPueA5ao8TFXAy8gTilfQ0kNTCQFCYGYN1cJgbUdc=; b=DxUZ7jAeNc5NZ5Db/nF0d//e8r9r/bMVAyQy+32jhIK2U9/1QB+S6C3AwSYCewMzhwZZ9X TCCrlWvoYb3R508b4XKwCjvNcbo/0mDk9YZdPuboGg/Px7tZFbIFQB8H7MF8SpH/sm64Rb Fqxx/3zaQ01z6i833hnB3tuPlnWL4hE= Received: from mail-oo1-f71.google.com (mail-oo1-f71.google.com [209.85.161.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-695-jmqK3xuYNRKT4vQGaA3woQ-1; Thu, 16 Nov 2023 10:51:14 -0500 X-MC-Unique: jmqK3xuYNRKT4vQGaA3woQ-1 Received: by mail-oo1-f71.google.com with SMTP id 006d021491bc7-589f91a6c0cso967427eaf.3 for <gcc-patches@gcc.gnu.org>; Thu, 16 Nov 2023 07:51:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700149872; x=1700754672; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QzhPueA5ao8TFXAy8gTilfQ0kNTCQFCYGYN1cJgbUdc=; b=eODhzoEfKO5KY/cEflJjocHU2W8zzXDosJJaHKgbBTf+QiWlEHJm/BvHEsmXhpiIIe idEdiU27fH5fe6rCy6aJq1xMGqi7KHHx7sToqJSp33I/j5ESMFPMz9m6D1CGujtyrvv2 JIDh2BHx/A1QRi4WGe7lX3SHtFakDq/5judAZSA7LYy1001y8gbrCjs4yVlQVrliAzJR bCHCpwN+Usht++FnKFMhsL5MY9z3JWRkAcKBxoQ9mOzlagtgdxmQt7ImMWccWCVbrYiB 0rU/Uc20e23tXTvaPkMPIK1WTbUYAY/+WC2YdLxDb+PxDrfBvuthWCKiGqaJNmICDAWJ Ptsg== X-Gm-Message-State: AOJu0YxlDJ/U/PhHRlIPc/yPZf0vbwLVndTYCb2e5STuJEPtYDoB0dl4 d01HEsPzbWxPjPT4ldMrcgIOZKTwr0glE9Rg1DW+A9fL3kr4DWNP4YijwPwqs+8UNIVDFqlfTpM VFBFjiZC/Hpw2B3uWHH8K9LKLXW3z415JAd62Tb0KczGVvNSYEiY7IdSkz/oJpspl+Qx/KsPCiu s= X-Received: by 2002:a05:6358:89d:b0:16b:c892:5f99 with SMTP id m29-20020a056358089d00b0016bc8925f99mr10629695rwj.26.1700149872716; Thu, 16 Nov 2023 07:51:12 -0800 (PST) X-Received: by 2002:a05:6358:89d:b0:16b:c892:5f99 with SMTP id m29-20020a056358089d00b0016bc8925f99mr10629680rwj.26.1700149872371; Thu, 16 Nov 2023 07:51:12 -0800 (PST) Received: from localhost.localdomain (ool-457670bb.dyn.optonline.net. [69.118.112.187]) by smtp.gmail.com with ESMTPSA id em6-20020ad44f86000000b006585c7f64a3sm1464318qvb.14.2023.11.16.07.51.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 07:51:11 -0800 (PST) From: Patrick Palka <ppalka@redhat.com> To: gcc-patches@gcc.gnu.org Cc: jason@redhat.com, Patrick Palka <ppalka@redhat.com> Subject: [pushed] c++: add fixed testcases [PR98614, PR104802] Date: Thu, 16 Nov 2023 10:51:07 -0500 Message-ID: <20231116155108.2207222-1-ppalka@redhat.com> X-Mailer: git-send-email 2.43.0.rc1 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-13.7 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_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1782736399184038221 X-GMAIL-MSGID: 1782736399184038221 |
Series |
[pushed] c++: add fixed testcases [PR98614, PR104802]
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Patrick Palka
Nov. 16, 2023, 3:51 p.m. UTC
Tested on x86_64-pc-linux-gnu, pushed to trunk. -- >8 -- Both of these PRs are fixed by r12-1403-gc4e50e500da7692a. PR c++/98614 PR c++/104802 gcc/testsuite/ChangeLog: * g++.dg/cpp1z/nontype-auto22.C: New test. * g++.dg/cpp2a/concepts-partial-spec14.C: New test. --- gcc/testsuite/g++.dg/cpp1z/nontype-auto22.C | 17 +++++++++++++++++ .../g++.dg/cpp2a/concepts-partial-spec14.C | 10 ++++++++++ 2 files changed, 27 insertions(+) create mode 100644 gcc/testsuite/g++.dg/cpp1z/nontype-auto22.C create mode 100644 gcc/testsuite/g++.dg/cpp2a/concepts-partial-spec14.C
diff --git a/gcc/testsuite/g++.dg/cpp1z/nontype-auto22.C b/gcc/testsuite/g++.dg/cpp1z/nontype-auto22.C new file mode 100644 index 00000000000..1882d2586d5 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp1z/nontype-auto22.C @@ -0,0 +1,17 @@ +// PR c++/104802 +// { dg-do compile { target c++17 } } + +template<auto const& ... Args> +struct S { + template<typename=void> + void operator()() const {} +}; + +struct weird_ { + int operator&() const { return 123; } +} const weird {}; + +int main() { + S<weird> s {}; + s(); +} diff --git a/gcc/testsuite/g++.dg/cpp2a/concepts-partial-spec14.C b/gcc/testsuite/g++.dg/cpp2a/concepts-partial-spec14.C new file mode 100644 index 00000000000..c94b4013340 --- /dev/null +++ b/gcc/testsuite/g++.dg/cpp2a/concepts-partial-spec14.C @@ -0,0 +1,10 @@ +// PR c++/98614 +// { dg-do compile { target c++20 } } + +template<class T> +struct A; + +template<class T> requires true +struct A<T> { + A(A<T> const&) = default; +};