Message ID | Y3IaE4OIQGHhvhXv@tucnak |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2073017wru; Mon, 14 Nov 2022 02:37:24 -0800 (PST) X-Google-Smtp-Source: AA0mqf4JgZwlQv4k7PdNa6uSDDEjRUCc9e+3diq1vXl3JjCEsrGO/PNc5trJzBYxr0NFpSoOksQm X-Received: by 2002:a17:906:c344:b0:78d:8cf3:6ae with SMTP id ci4-20020a170906c34400b0078d8cf306aemr9848001ejb.173.1668422243917; Mon, 14 Nov 2022 02:37:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668422243; cv=none; d=google.com; s=arc-20160816; b=fal4DlxyrPLY2nX5frdef4QLI6NM6xOMEuD/4Wn52wCzEexFQpBKxti3BfFUe+APKc IzHai9ZTGtIfagz/QxPuqe3TnEGqnj+ukiiDr57cyJSWjalNFipk7DXjLeP8hXqg/rZz qlamf1+vWATE3xhHLTuVU1nIgDkxyivX9spT3uhL0+g6wjdGY4PHbXzt+puABK1GgagM BBAi3VB/AlSLWVjFS39NbhZSbnHLzy9zvkc+TD6+wuoiDxkN1/fBToC0IdxSCXZjpwbA MLYum3erd+eONbNpN+lZxTi+wCNTk9fNT0yq1telBlE9/mInu64KZ2l2CXkVaQXwy8nC Z7uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-disposition:mime-version:message-id:subject:cc:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=aLCFfxii/QVb285ZWpyLE/62xBBaZn7/tVjpd0Hk1M0=; b=B6SIeQmFyuporG40ep+x42u2z0umnb/G7/CAQTklX+++pDyAIYcO7Gs4sGyLccFyrh i7iCbaxE6vTLisIF+JSLioQErgjKP5rKRDtrBQyWNeD7GjKJ8e5pg0WSgdv6r9T3BJx3 SeUZDsL8zUmzgqtNobN51SqY4qe7kOUUZXNXnSy9lpr9Qh6JMF3tmAVDAy1W+l8s+1gK yeJsGsXzR4OHuxjX3JAt6VjAUaTmJYyuS8Pm63WSvCLUELiCPfZq3DizX98KlnhyXcxe llWLyp0WWps8osKiRVPHyYJBAi24UnTzMBGn09Nm/9I6QaTK2RS4yCUWDMKciVzcnOBA QUQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=yN6XDyPx; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id hg2-20020a1709072cc200b007ae2368c8a8si9278681ejc.109.2022.11.14.02.37.23 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Nov 2022 02:37:23 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=yN6XDyPx; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 148203851886 for <ouuuleilei@gmail.com>; Mon, 14 Nov 2022 10:37:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 148203851886 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668422222; bh=aLCFfxii/QVb285ZWpyLE/62xBBaZn7/tVjpd0Hk1M0=; h=Date:To:Cc:Subject:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=yN6XDyPxA2AjUr0uDT55f9d7B0SLMe304ZgGYNuHlTrfXfgn8Za6Vw9kLDKjtgRBC fMyWzM9qw4enLpl4r0luEIQhPQ/rw6nO7EKrpB4HDn/jwsi8FCQoTplflOs4nDksx5 86AOXdFIwl7HYBf183GDEOuu/QrrtNk5EcKsO4BQ= 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.133.124]) by sourceware.org (Postfix) with ESMTPS id A1B5A3858D1E for <gcc-patches@gcc.gnu.org>; Mon, 14 Nov 2022 10:36:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A1B5A3858D1E Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-660-pl1Gnc7-NxmvdGSBTEJVOA-1; Mon, 14 Nov 2022 05:36:11 -0500 X-MC-Unique: pl1Gnc7-NxmvdGSBTEJVOA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id EE589811E75 for <gcc-patches@gcc.gnu.org>; Mon, 14 Nov 2022 10:36:10 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.38]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9B6B8112132E; Mon, 14 Nov 2022 10:36:10 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 2AEAa5oh2837898 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Mon, 14 Nov 2022 11:36:05 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 2AEAa40O2837897; Sun, 13 Nov 2022 22:36:04 -1200 Date: Sun, 13 Nov 2022 22:36:03 -1200 To: Jason Merrill <jason@redhat.com> Cc: gcc-patches@gcc.gnu.org Subject: [PATCH] c++: Add testcase for DR 2392 Message-ID: <Y3IaE4OIQGHhvhXv@tucnak> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no 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.29 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> From: Jakub Jelinek via Gcc-patches <gcc-patches@gcc.gnu.org> Reply-To: Jakub Jelinek <jakub@redhat.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749467523002762242?= X-GMAIL-MSGID: =?utf-8?q?1749467523002762242?= |
Series |
c++: Add testcase for DR 2392
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Jakub Jelinek
Nov. 14, 2022, 10:36 a.m. UTC
Hi! Working virtually out of Baker Island. The testcase from DR 2392 passes, so I assume we don't need to do anything further for the DR. Tested on x86_64-linux, ok for trunk? 2022-11-13 Jakub Jelinek <jakub@redhat.com> * g++.dg/DRs/dr2392.C: Add testcase for DR 2392. Jakub
Comments
On 11/14/22 00:36, Jakub Jelinek wrote: > Hi! > > Working virtually out of Baker Island. > > The testcase from DR 2392 passes, so I assume we don't need to do > anything further for the DR. > > Tested on x86_64-linux, ok for trunk? OK. > 2022-11-13 Jakub Jelinek <jakub@redhat.com> > > * g++.dg/DRs/dr2392.C: Add testcase for DR 2392. > > --- gcc/testsuite/g++.dg/DRs/dr2392.C.jj 2022-11-13 20:49:22.107817793 -1200 > +++ gcc/testsuite/g++.dg/DRs/dr2392.C 2022-11-13 20:49:17.506880524 -1200 > @@ -0,0 +1,12 @@ > +// DR 2392 > +// { dg-do compile { target c++11 } } > + > +template <class T = void> > +constexpr int > +foo () > +{ > + T t; > + return 1; > +} > + > +using V = decltype (new int[foo ()]); > > Jakub >
--- gcc/testsuite/g++.dg/DRs/dr2392.C.jj 2022-11-13 20:49:22.107817793 -1200 +++ gcc/testsuite/g++.dg/DRs/dr2392.C 2022-11-13 20:49:17.506880524 -1200 @@ -0,0 +1,12 @@ +// DR 2392 +// { dg-do compile { target c++11 } } + +template <class T = void> +constexpr int +foo () +{ + T t; + return 1; +} + +using V = decltype (new int[foo ()]);