Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2233399/?format=api
{ "id": 2233399, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2233399/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/afr60nyd3oXBbOc-@tucnak/", "project": { "id": 17, "url": "http://patchwork.ozlabs.org/api/1.1/projects/17/?format=api", "name": "GNU Compiler Collection", "link_name": "gcc", "list_id": "gcc-patches.gcc.gnu.org", "list_email": "gcc-patches@gcc.gnu.org", "web_url": null, "scm_url": null, "webscm_url": null }, "msgid": "<afr60nyd3oXBbOc-@tucnak>", "date": "2026-05-06T08:24:50", "name": "c++: Don't check for consteval-only uses inside of USING_STMT [PR125184]", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "8454d147d733ab2da4031157b24cc333b471018c", "submitter": { "id": 671, "url": "http://patchwork.ozlabs.org/api/1.1/people/671/?format=api", "name": "Jakub Jelinek", "email": "jakub@redhat.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/afr60nyd3oXBbOc-@tucnak/mbox/", "series": [ { "id": 502967, "url": "http://patchwork.ozlabs.org/api/1.1/series/502967/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=502967", "date": "2026-05-06T08:24:50", "name": "c++: Don't check for consteval-only uses inside of USING_STMT [PR125184]", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/502967/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2233399/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2233399/checks/", "tags": {}, "headers": { "Return-Path": "<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "gcc-patches@gcc.gnu.org" ], "Delivered-To": [ "patchwork-incoming@legolas.ozlabs.org", "gcc-patches@gcc.gnu.org" ], "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (1024-bit key;\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=WD1e/Yrh;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org\n (client-ip=38.145.34.32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)", "sourceware.org;\n\tdkim=pass (1024-bit key,\n unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=WD1e/Yrh", "sourceware.org; dmarc=pass (p=quarantine dis=none)\n header.from=redhat.com", "sourceware.org; spf=pass smtp.mailfrom=redhat.com", "sourceware.org; arc=none smtp.remote-ip=170.10.129.124" ], "Received": [ "from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g9XSd3Wq6z1yJq\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 06 May 2026 20:59:12 +1000 (AEST)", "from vm01.sourceware.org (localhost [IPv6:::1])\n\tby sourceware.org (Postfix) with ESMTP id 0D6F64BA2E33\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 6 May 2026 10:59:10 +0000 (GMT)", "from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.129.124])\n by sourceware.org (Postfix) with ESMTP id 9CDF24BA23D3\n for <gcc-patches@gcc.gnu.org>; Wed, 6 May 2026 08:24:56 +0000 (GMT)", "from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-111-bNpgvyZdMrW7nCRbAnZ9Xg-1; Wed,\n 06 May 2026 04:24:54 -0400", "from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id D04A21800610\n for <gcc-patches@gcc.gnu.org>; Wed, 6 May 2026 08:24:53 +0000 (UTC)", "from tucnak.zalov.cz (unknown [10.44.48.41])\n by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with\n ESMTPS\n id 36BDC1800240; Wed, 6 May 2026 08:24:53 +0000 (UTC)", "from tucnak.zalov.cz (localhost [127.0.0.1])\n by tucnak.zalov.cz (8.18.1/8.18.1) with ESMTPS id 6468Ooia202546\n (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT);\n Wed, 6 May 2026 10:24:50 +0200", "(from jakub@localhost)\n by tucnak.zalov.cz (8.18.1/8.18.1/Submit) id 6468Ooau202545;\n Wed, 6 May 2026 10:24:50 +0200" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org 0D6F64BA2E33", "OpenDKIM Filter v2.11.0 sourceware.org 9CDF24BA23D3" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 9CDF24BA23D3", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 9CDF24BA23D3", "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1778055896; cv=none;\n b=lrQjTeAuDxdccD6dez3NZPN2llMulqQ3LX26Pmeg/9TcldRPLC2IMz5RtZFIoByWgN+3KNSBJuqJTve2FSils2hP79Ne7x/SNG4eeaVO77eLYm7DXk+/I86OsdBu55De7fuSl4RVm30gI0FwAhaGotvLhIkexRA5vHNOX3UxAwE=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1778055896; c=relaxed/simple;\n bh=ysqNqymZeXVPg/IoaLOBaL/pPO1nKIAPMdDMXzaCUAo=;\n h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version;\n b=VsWoAV22lZeg/zaVUtcuUiZ4WeQCoPxkrmuTvZqPJMb8nyzkOuGCxn91vyekbm+vNp+luMcL3ATjXQLS/iKBvq6+0MeuMDrCCvUZdFfYM0x5BqqC7NOuNfUDoQN66DfqXEy4JTxiWLfg7LtxbVN2chhnfQLwOZgZtCteM6V7E8Y=", "ARC-Authentication-Results": "i=1; sourceware.org;\n dkim=pass (1024-bit key, unprotected)\n header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256\n header.s=mimecast20190719 header.b=WD1e/Yrh", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1778055896;\n h=from:from:reply-to:reply-to:subject:subject:date:date:\n message-id:message-id:to:to:cc:cc:mime-version:mime-version:\n content-type:content-type; bh=P0qvmhEgBlzavwmI688u5aqVP6QmuiQnFYxSz3rggR0=;\n b=WD1e/YrhF9rr9d+sJfu8UuBLzVXzd5vxCHUqXuCw8gDqOeU0vRWHIvwhw4JNP4wSF46R7X\n gyP5dQqRktZWAz0UDWeqYfWbA5fzYagwg/bcGRvqexbvbo+3O7EILyBgNVgfFjldg1CSvz\n JASITfj5rrb2fupyQ4v2DGlObccxmQ4=", "X-MC-Unique": "bNpgvyZdMrW7nCRbAnZ9Xg-1", "X-Mimecast-MFC-AGG-ID": "bNpgvyZdMrW7nCRbAnZ9Xg_1778055893", "Date": "Wed, 6 May 2026 10:24:50 +0200", "From": "Jakub Jelinek <jakub@redhat.com>", "To": "Jason Merrill <jason@redhat.com>, Marek Polacek <polacek@redhat.com>", "Cc": "gcc-patches@gcc.gnu.org", "Subject": "[PATCH] c++: Don't check for consteval-only uses inside of\n USING_STMT [PR125184]", "Message-ID": "<afr60nyd3oXBbOc-@tucnak>", "MIME-Version": "1.0", "X-Scanned-By": "MIMEDefang 3.4.1 on 10.30.177.111", "X-Mimecast-Spam-Score": "0", "X-Mimecast-MFC-PROC-ID": "6KxlgOwIyq7gTz6vw_-2Jyv8qO6RhkGidnBkUjeGm60_1778055893", "X-Mimecast-Originator": "redhat.com", "Content-Type": "text/plain; charset=us-ascii", "Content-Disposition": "inline", "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>,\n <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>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>", "Reply-To": "Jakub Jelinek <jakub@redhat.com>", "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org" }, "content": "Hi!\n\nI think a USING_STMT operand shouldn't count as consteval-only use.\n\nBootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?\n\n2026-05-06 Jakub Jelinek <jakub@redhat.com>\n\n\tPR c++/125184\n\t* reflect.cc (check_out_of_consteval_use): Ignore USING_STMTs.\n\n\t* g++.dg/reflect/using3.C: New test.\n\n\n\tJakub", "diff": "--- gcc/cp/reflect.cc.jj\t2026-05-05 09:57:59.014541622 +0200\n+++ gcc/cp/reflect.cc\t2026-05-05 12:29:03.599363151 +0200\n@@ -8791,6 +8791,9 @@ check_out_of_consteval_use (tree expr, b\n if (VAR_P (expr) && DECL_DECLARED_CONSTEXPR_P (expr))\n return false;\n \n+ if (TREE_CODE (expr) == USING_STMT)\n+ return false;\n+\n hash_set<tree> pset;\n if (tree t = cp_walk_tree (&expr, check_out_of_consteval_use_r, &pset, &pset))\n {\n--- gcc/testsuite/g++.dg/reflect/using3.C.jj\t2026-05-05 12:29:58.637468773 +0200\n+++ gcc/testsuite/g++.dg/reflect/using3.C\t2026-05-05 12:30:45.345709765 +0200\n@@ -0,0 +1,11 @@\n+// PR c++/125184\n+// { dg-do compile { target c++26 } }\n+// { dg-additional-options \"-freflection\" }\n+\n+#include <meta>\n+\n+void\n+foo ()\n+{\n+ using std::meta::info;\n+}\n", "prefixes": [] }