Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2226791/?format=api
{ "id": 2226791, "url": "http://patchwork.ozlabs.org/api/patches/2226791/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/bmm.hhupath8dc.gcc.gcc-TEST.tkaminsk.107.1.9@forge-stage.sourceware.org/", "project": { "id": 17, "url": "http://patchwork.ozlabs.org/api/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, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<bmm.hhupath8dc.gcc.gcc-TEST.tkaminsk.107.1.9@forge-stage.sourceware.org>", "list_archive_url": null, "date": "2026-04-22T18:55:25", "name": "[v1,09/13] Cleanred up whitespace", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "e3957c286d50b0c42e36d3044351e7ae4b70f6c9", "submitter": { "id": 93223, "url": "http://patchwork.ozlabs.org/api/people/93223/?format=api", "name": "tkaminsk via Sourceware Forge", "email": "forge-bot+tkaminsk@forge-stage.sourceware.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/bmm.hhupath8dc.gcc.gcc-TEST.tkaminsk.107.1.9@forge-stage.sourceware.org/mbox/", "series": [ { "id": 501097, "url": "http://patchwork.ozlabs.org/api/series/501097/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=501097", "date": "2026-04-22T18:55:20", "name": "libstdc++: optional<T&> (P2988R12)", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/501097/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2226791/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2226791/checks/", "tags": {}, "related": [], "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 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; dmarc=none (p=none dis=none)\n header.from=forge-stage.sourceware.org", "sourceware.org;\n spf=pass smtp.mailfrom=forge-stage.sourceware.org", "server2.sourceware.org;\n arc=none smtp.remote-ip=38.145.34.39" ], "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 4g19572T31z1yGs\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 05:58:19 +1000 (AEST)", "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 8446F442BAC3\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 19:58:17 +0000 (GMT)", "from forge-stage.sourceware.org (vm08.sourceware.org [38.145.34.39])\n by sourceware.org (Postfix) with ESMTPS id 0893D409F638\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 18:56:26 +0000 (GMT)", "from forge-stage.sourceware.org (localhost [IPv6:::1])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256)\n (No client certificate requested)\n by forge-stage.sourceware.org (Postfix) with ESMTPS id 677AD435BA\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 18:56:23 +0000 (UTC)" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org 8446F442BAC3", "OpenDKIM Filter v2.11.0 sourceware.org 0893D409F638" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 0893D409F638", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 0893D409F638", "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776884186; cv=none;\n b=XlfWIqUQ1YSA6ADh4qcsfbfhN/dVYMRlZCgDKwA1dBNkzgiusDHNx2nl8ooHP6z5VhC9x8eu5O52SWLtFHJoAXwnYJF/eGFabryhzuWxJh48r3uGXh2UjaFZicCQrjy3IG5MjDEwZRy0Hn53/2gZXF5RbuHwdtvZpjtbDDON6FA=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776884186; c=relaxed/simple;\n bh=0EIOlsWlzn/EP7o9cQ0pY7zcKKk1zc5VFgKoMbC1GrU=;\n h=From:Date:Subject:MIME-Version:To:Message-ID;\n b=Rjf2ZScaFUcIgUwcnF2hF474SZhnWPWmkMQ2BPd1YsXZi3pOmR17cv2CXF7lj7oEOI3/5nMFPCvrGemIMuHDm9DKrTnM3ompHTPcQZusT7RUb3YRgumV63WXgC9zkPkvuUO4dtFdnsq1YLGKpqEgOMOEKkb2E8agBceurtDDsqs=", "ARC-Authentication-Results": "i=1; server2.sourceware.org", "From": "tkaminsk via Sourceware Forge\n <forge-bot+tkaminsk@forge-stage.sourceware.org>", "Date": "Wed, 22 Apr 2026 18:55:25 +0000", "Subject": "[PATCH v1 09/13] Cleanred up whitespace", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "To": "gcc-patches mailing list <gcc-patches@gcc.gnu.org>", "Message-ID": "\n <bmm.hhupath8dc.gcc.gcc-TEST.tkaminsk.107.1.9@forge-stage.sourceware.org>", "X-Mailer": "batrachomyomachia", "X-Pull-Request-Organization": "gcc", "X-Pull-Request-Repository": "gcc-TEST", "X-Pull-Request": "https://forge.sourceware.org/gcc/gcc-TEST/pulls/107", "References": "\n <bmm.hhupath8dc.gcc.gcc-TEST.tkaminsk.107.1.0@forge-stage.sourceware.org>", "In-Reply-To": "\n <bmm.hhupath8dc.gcc.gcc-TEST.tkaminsk.107.1.0@forge-stage.sourceware.org>", "X-Patch-URL": "\n https://forge.sourceware.org/tkaminsk/gcc/commit/5890baca98f7497d6aa1135b27d4875e309132a0", "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": "gcc-patches mailing list <gcc-patches@gcc.gnu.org>,\n tkaminsk@gcc.gnu.org", "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org" }, "content": "From: Tomasz Kamiński <tkaminsk@redhat.com>\n\n---\n libstdc++-v3/include/std/optional | 4 ++--\n .../testsuite/20_util/optional/ref/access.cc | 2 +-\n .../testsuite/20_util/optional/ref/assign.cc | 14 +++++++-------\n .../testsuite/20_util/optional/ref/cons.cc | 4 ++--\n .../optional/ref/make_optional/from_lvalue_neg.cc | 2 +-\n 5 files changed, 13 insertions(+), 13 deletions(-)", "diff": "diff --git a/libstdc++-v3/include/std/optional b/libstdc++-v3/include/std/optional\nindex 9a6a45bbfb03..53d828f17b9b 100644\n--- a/libstdc++-v3/include/std/optional\n+++ b/libstdc++-v3/include/std/optional\n@@ -1722,7 +1722,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION\n \t static_assert(is_same_v<remove_cvref_t<invoke_result_t<_Fn>>, optional>,\n \t\t\t\"the function passed to std::optional<T&>::or_else \"\n \t\t\t\"must return a std::optional<T&>\");\n-\t // _GLIBCXX_RESOLVE_LIB_DEFECTS \n+\t // _GLIBCXX_RESOLVE_LIB_DEFECTS\n \t // 4367. Improve optional<T&>::or_else\n \t if (has_value())\n \t return *this;\n@@ -1738,7 +1738,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION\n \n private:\n _Tp *_M_val = nullptr;\n- \n+\n template<typename _Up> friend class optional;\n \n template<typename _Up>\ndiff --git a/libstdc++-v3/testsuite/20_util/optional/ref/access.cc b/libstdc++-v3/testsuite/20_util/optional/ref/access.cc\nindex 60ecf9301c4f..37c8ff355a66 100644\n--- a/libstdc++-v3/testsuite/20_util/optional/ref/access.cc\n+++ b/libstdc++-v3/testsuite/20_util/optional/ref/access.cc\n@@ -11,7 +11,7 @@ struct NonMovable\n };\n \n template<typename T>\n-constexpr \n+constexpr\n void test_value(T& t)\n {\n std::optional<T&> o1(t);\ndiff --git a/libstdc++-v3/testsuite/20_util/optional/ref/assign.cc b/libstdc++-v3/testsuite/20_util/optional/ref/assign.cc\nindex c6d0e3fe0ec2..be8b1c84ecae 100644\n--- a/libstdc++-v3/testsuite/20_util/optional/ref/assign.cc\n+++ b/libstdc++-v3/testsuite/20_util/optional/ref/assign.cc\n@@ -29,7 +29,7 @@ struct Conv\n struct Tracker\n {\n struct Counter\n- { \n+ {\n int copy;\n int move;\n };\n@@ -88,7 +88,7 @@ test_copy()\n std::optional<Tracker&> e;\n std::optional<Tracker&> o1(t);\n std::optional<Tracker&> o2(u);\n- \n+\n o2 = o1;\n VERIFY( o1.has_value() );\n VERIFY( &o1.value() == &t );\n@@ -128,12 +128,12 @@ test_from_value()\n const std::optional<NonTrivial&> s(u);\n std::optional<NonTrivial&> o1;\n std::optional<const NonTrivial&> co1;\n- \n+\n o1 = s;\n o1 = v;\n VERIFY( o1.has_value() );\n VERIFY( &o1.value() == &v );\n- \n+\n o1.reset();\n VERIFY( !o1.has_value() );\n \n@@ -162,7 +162,7 @@ test_from_value()\n static_assert( !can_emplace<std::optional<NonTrivial&>, const NonTrivial&> );\n static_assert( !can_emplace<std::optional<NonTrivial&>, NonTrivial> );\n static_assert( !can_emplace<std::optional<NonTrivial&>, const NonTrivial> );\n- \n+\n co1 = s;\n co1 = v;\n VERIFY( co1.has_value() );\n@@ -182,7 +182,7 @@ test_from_value()\n co1.emplace(v);\n VERIFY( co1.has_value() );\n VERIFY( &co1.value() == &v );\n- \n+\n co1 = s;\n co1.emplace(cv);\n VERIFY( co1.has_value() );\n@@ -355,7 +355,7 @@ test_to_opt_value()\n VERIFY( o1->ctor.move == 0 );\n VERIFY( o1->assign.copy == 1 );\n VERIFY( o1->assign.move == 0 );\n- \n+\n o1 = std::move(er);\n \n o1 = std::move(r);\ndiff --git a/libstdc++-v3/testsuite/20_util/optional/ref/cons.cc b/libstdc++-v3/testsuite/20_util/optional/ref/cons.cc\nindex cb900c24f58d..b13e8b92329f 100644\n--- a/libstdc++-v3/testsuite/20_util/optional/ref/cons.cc\n+++ b/libstdc++-v3/testsuite/20_util/optional/ref/cons.cc\n@@ -321,7 +321,7 @@ test_opt_opt()\n std::optional<std::optional<int>&> o4(s);\n VERIFY( o4.has_value() );\n VERIFY( &o4.value() == &s );\n- \n+\n std::optional<std::optional<int>&> o5(std::in_place, s);\n VERIFY( o5.has_value() );\n VERIFY( &o5.value() == &s );\n@@ -329,7 +329,7 @@ test_opt_opt()\n std::optional<std::optional<int>> o6(o1);\n VERIFY( o6.has_value() );\n VERIFY( !o6.value().has_value() );\n- \n+\n std::optional<std::optional<int>> s2(std::in_place);\n std::optional<std::optional<int>&> oo1(s2);\n VERIFY( oo1.has_value() );\ndiff --git a/libstdc++-v3/testsuite/20_util/optional/ref/make_optional/from_lvalue_neg.cc b/libstdc++-v3/testsuite/20_util/optional/ref/make_optional/from_lvalue_neg.cc\nindex 0d6763735d85..aed6791a3ff6 100644\n--- a/libstdc++-v3/testsuite/20_util/optional/ref/make_optional/from_lvalue_neg.cc\n+++ b/libstdc++-v3/testsuite/20_util/optional/ref/make_optional/from_lvalue_neg.cc\n@@ -25,7 +25,7 @@ auto lr3 = std::make_optional<C&&>(s); // { dg-error \"no matching function\n auto lr4 = std::make_optional<const C&&>(s); // { dg-error \"no matching function for call\" }\n \n auto clr1 = std::make_optional<C&>(cs); // { dg-error \"no matching function for call\" }\n-auto clr2 = std::make_optional<const C&>(cs); // changed meaning \n+auto clr2 = std::make_optional<const C&>(cs); // changed meaning\n static_assert( std::is_same_v< decltype(clr2), std::optional<decay_pre26<const C&>>> );\n auto clr3 = std::make_optional<C&&>(cs); // { dg-error \"no matching function for call\" }\n auto clr3 = std::make_optional<const C&&>(cs); // { dg-error \"no matching function for call\" }\n", "prefixes": [ "v1", "09/13" ] }