{"id":2226710,"url":"http://patchwork.ozlabs.org/api/covers/2226710/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/cover/bmm.hhuohcp8h4.gcc.gcc-TEST.peppe.55.1.0@forge-stage.sourceware.org/","project":{"id":17,"url":"http://patchwork.ozlabs.org/api/projects/17/?format=json","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.hhuohcp8h4.gcc.gcc-TEST.peppe.55.1.0@forge-stage.sourceware.org>","list_archive_url":null,"date":"2026-04-22T18:25:45","name":"[v1,0/1] WIP: libstdc++: WIP: optional<T&> (P2988R12)","submitter":{"id":93222,"url":"http://patchwork.ozlabs.org/api/people/93222/?format=json","name":"peppe via Sourceware Forge","email":"forge-bot+peppe@forge-stage.sourceware.org"},"mbox":"http://patchwork.ozlabs.org/project/gcc/cover/bmm.hhuohcp8h4.gcc.gcc-TEST.peppe.55.1.0@forge-stage.sourceware.org/mbox/","series":[{"id":501075,"url":"http://patchwork.ozlabs.org/api/series/501075/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/list/?series=501075","date":"2026-04-22T18:25:46","name":"WIP: libstdc++: WIP: optional<T&> (P2988R12)","version":1,"mbox":"http://patchwork.ozlabs.org/series/501075/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/covers/2226710/comments/","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=2620:52:6:3111::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\n [IPv6:2620:52:6:3111::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 4g17Sw0P11z1yD5\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 23 Apr 2026 04:45:20 +1000 (AEST)","from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 149C940A1E90\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 18:45:18 +0000 (GMT)","from forge-stage.sourceware.org (vm08.sourceware.org [38.145.34.39])\n by sourceware.org (Postfix) with ESMTPS id D0C9648FF1A5\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 18:26:40 +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 A729943472\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 18:26:40 +0000 (UTC)"],"DKIM-Filter":["OpenDKIM Filter v2.11.0 sourceware.org 149C940A1E90","OpenDKIM Filter v2.11.0 sourceware.org D0C9648FF1A5"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org D0C9648FF1A5","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org D0C9648FF1A5","ARC-Seal":"i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776882400; cv=none;\n b=s9bGMYg7ZZjEnLvh3CUDy7lRnVspKiQg8DH0whO3f2hrMaEmZqT0dt1BuwT6o2+geR0Im3Gld+xfevBYQzS2xA6/lCCtFXkPbzHJTyIuChcMB5g/5xfgeIbDTmq3C+2pouJTmNuDKb6e7qUESvyy7HdVnTkdcIJI3U0OyYfHeLM=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776882400; c=relaxed/simple;\n bh=QezEh4o1FNrQYqWfAqwoDdMcjwmyh/ZRvx+dbhF69G8=;\n h=From:Date:Subject:To:Message-ID;\n b=nPFwYXHjTUKLqoC1KYPvfhNlpwlq4Cc1ClqVePQxFU2Ew7Dp7HTMCJQwCaLARvt7frNdkUxwN9ljh1Bf0JR7yyywQZVe2ASCxwxDCRN2mOVseSbLtJnNJETuu5Yu6Ny20AVMI/qCVLYpUCN6LQOHWQB1t/SLwe9TbWdnq7fPYso=","ARC-Authentication-Results":"i=1; server2.sourceware.org","From":"peppe via Sourceware Forge <forge-bot+peppe@forge-stage.sourceware.org>","Date":"Wed, 22 Apr 2026 18:25:45 +0000","Subject":"[PATCH v1 0/1] WIP: libstdc++: WIP: optional<T&> (P2988R12)","To":"gcc-patches mailing list <gcc-patches@gcc.gnu.org>","Message-ID":"\n <bmm.hhuohcp8h4.gcc.gcc-TEST.peppe.55.1.0@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/55","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 peppe@noreply.localhost","Errors-To":"gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"},"content":"Hi gcc-patches mailing list,\npeppe via Sourceware Forge <forge-bot+peppe@forge-stage.sourceware.org> has requested that the following forgejo pull request\nbe published on the mailing list.\n\nCreated on: 2025-06-12 10:40:11+00:00\nLatest update: 2025-10-17 15:16:12+00:00\nChanges: 0 changed files, 0 additions, 0 deletions\nHead revision: peppe/gcc-TEST ref refs/pull/55/head commit a328791d948e3772b8a40645c9ffef1df1cf185a\nBase revision: gcc/gcc-TEST ref trunk commit 01044e0ee27093a3990996578b15f6ab69ed3395 r16-1114-g01044e0ee27093\nMerge base: 01044e0ee27093a3990996578b15f6ab69ed3395\nFull diff url: https://forge.sourceware.org/gcc/gcc-TEST/pulls/55.diff\nDiscussion:  https://forge.sourceware.org/gcc/gcc-TEST/pulls/55\nRequested Reviewers:\n\nINCOMPLETE (needs lots of tests!). The value of the FTM is made-up.\n\nThe converting constructors from `optional<U>` are tedious to type.\nMaybe deduce the argument and centralize the implementation?\n\nNoted a few things to address in P2988R12, editorially / easy LWG issues.\n\nmake_optional: the proposed change breaks\n`  make_optional<T>({braced-init-list})` wanted? Disabled for now.\n\nlibstdc++-v3/ChangeLog:\n\n\t* include/bits/version.def (__cpp_lib_optional): Bump the\n\tfeature-testing macro.\n\t* include/bits/version.h: Regenerate.\n\t* include/std/optional (optional): Add specialization for\n\treferences. Do minor amendments to the primary template as\n\tper P2988R12.\n\t* testsuite/20_util/optional/requirements.cc: Amend the\n\tfeature-testing macro test.\n\t* testsuite/20_util/optional/requirements_neg.cc: Amend the\n\ttesting of optional<T&>.\n\t* testsuite/20_util/optional/version.cc: Amend the\n\tfeature-testing macro test.\n\nThanks for taking the time to contribute to GCC!\n\nPlease be advised that https://forge.sourceware.org/ is currently a trial\nthat is being used by the GCC community to experiment with a new workflow\nbased on pull requests.\n\nPull requests sent here may be forgotten or ignored. Patches that you want to\npropose for inclusion in GCC should use the existing email-based workflow,\nsee https://gcc.gnu.org/contribute.html\n\n\nChanged files:\n- M: libstdc++-v3/include/bits/version.def\n- M: libstdc++-v3/include/bits/version.h\n- M: libstdc++-v3/include/std/optional\n- M: libstdc++-v3/testsuite/20_util/optional/requirements.cc\n- M: libstdc++-v3/testsuite/20_util/optional/requirements_neg.cc\n- M: libstdc++-v3/testsuite/20_util/optional/version.cc\n\n\nGiuseppe D'Angelo (1):\n  libstdc++: WIP: optional<T&> (P2988R12)\n\n libstdc++-v3/include/bits/version.def         |   4 +\n libstdc++-v3/include/bits/version.h           |   7 +-\n libstdc++-v3/include/std/optional             | 347 +++++++++++++++++-\n .../20_util/optional/requirements.cc          |   4 +-\n .../20_util/optional/requirements_neg.cc      |  17 +-\n .../testsuite/20_util/optional/version.cc     |   4 +-\n 6 files changed, 374 insertions(+), 9 deletions(-)"}