{"id":2220986,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2220986/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/patch/20260408154355.334967-1-tkaminsk@redhat.com/","project":{"id":17,"url":"http://patchwork.ozlabs.org/api/1.1/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},"msgid":"<20260408154355.334967-1-tkaminsk@redhat.com>","date":"2026-04-08T15:43:22","name":"libstdc++: Update __cpp_lib_function_ref value for P3948R1.","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"a012be69b09f4d7fd9465af16197f02c28b7a7a3","submitter":{"id":90409,"url":"http://patchwork.ozlabs.org/api/1.1/people/90409/?format=json","name":"Tomasz Kamiński","email":"tkaminsk@redhat.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/gcc/patch/20260408154355.334967-1-tkaminsk@redhat.com/mbox/","series":[{"id":499156,"url":"http://patchwork.ozlabs.org/api/1.1/series/499156/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/list/?series=499156","date":"2026-04-08T15:43:22","name":"libstdc++: Update __cpp_lib_function_ref value for P3948R1.","version":1,"mbox":"http://patchwork.ozlabs.org/series/499156/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2220986/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2220986/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=KEuod9us;\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=KEuod9us","sourceware.org; dmarc=pass (p=quarantine dis=none)\n header.from=redhat.com","sourceware.org; spf=pass smtp.mailfrom=redhat.com","server2.sourceware.org;\n arc=none smtp.remote-ip=170.10.133.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 4frS7F3Vg5z1yD3\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 09 Apr 2026 01:44:56 +1000 (AEST)","from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id D7BA14BA2E16\n\tfor <incoming@patchwork.ozlabs.org>; Wed,  8 Apr 2026 15:44:53 +0000 (GMT)","from us-smtp-delivery-124.mimecast.com\n (us-smtp-delivery-124.mimecast.com [170.10.133.124])\n by sourceware.org (Postfix) with ESMTP id 1138F4BA543C\n for <gcc-patches@gcc.gnu.org>; Wed,  8 Apr 2026 15:44:21 +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-640-4H5lejAZMFG9Cox9c6k1Vw-1; Wed,\n 08 Apr 2026 11:44:14 -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 F0E3E1828BA4; Wed,  8 Apr 2026 15:43:57 +0000 (UTC)","from localhost (unknown [10.44.50.40])\n by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id 3B3361800765; Wed,  8 Apr 2026 15:43:56 +0000 (UTC)"],"DKIM-Filter":["OpenDKIM Filter v2.11.0 sourceware.org D7BA14BA2E16","OpenDKIM Filter v2.11.0 sourceware.org 1138F4BA543C"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org 1138F4BA543C","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org 1138F4BA543C","ARC-Seal":"i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1775663061; cv=none;\n b=SisSZqlgF6UXkbmQxLVl9l5pwfC6IlXmLIzXhFk5/6iHpgfT8qR/XbJaOQqUB+LElhFkPAu9R8uqkomsrpvNnlUea2DrZi3rSKahb45KYDOCIKU2BUWo10XN1usD84Ex33tz1pOsEijZh6ns/EFr7b19okGFxA5W86jy2Uw6f5w=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1775663061; c=relaxed/simple;\n bh=QSpWjkIzRCytRicXJgQWBDDm/CDwp/VE5HrhWudvwRs=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=czvEQ2/sh37UqVas8iKIp3c94VVluuhkgXLGLQSKc956AJA45SRAfk1hZVPYhK3OPwurUpILp8owCvEIS/BHpYZO757VHsT+0tLBrL7pWQbD7i+nFaaHCNJvbMnAVEXXZHuU0u/6zLmWEP8LrrU2RIvj09tEpOLtda6pAMZqQYs=","ARC-Authentication-Results":"i=1; server2.sourceware.org","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n s=mimecast20190719; t=1775663060;\n h=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n to:to:cc:mime-version:mime-version:content-type:content-type:\n content-transfer-encoding:content-transfer-encoding;\n bh=ck7pq5DwG8frFGmEsk4zdCIYrT/SlkoKjUuIxhiRQlo=;\n b=KEuod9us0sQ1NTdtrIxJqz2wH9mRdBIxoMilBsZVZWAQm7JG9gIExpgdeA+4rUVGeX9TUf\n HJuPgytcVIXBSGD5lMxE6rUJSvMDdZNRlFbMzetY2M20cKn6ohNRey2CBJUzLxJE4Fn+eb\n HLKbgWasBM4gnCT3AjZJfn8sTYAD2w0=","X-MC-Unique":"4H5lejAZMFG9Cox9c6k1Vw-1","X-Mimecast-MFC-AGG-ID":"4H5lejAZMFG9Cox9c6k1Vw_1775663051","From":"=?utf-8?q?Tomasz_Kami=C5=84ski?= <tkaminsk@redhat.com>","To":"libstdc++@gcc.gnu.org,\n\tgcc-patches@gcc.gnu.org","Subject":"[PATCH] libstdc++: Update __cpp_lib_function_ref value for P3948R1.","Date":"Wed,  8 Apr 2026 17:43:22 +0200","Message-ID":"<20260408154355.334967-1-tkaminsk@redhat.com>","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":"VvRlM99gN9hgM6ncnLsxZKWMX9wI8f3zIaiavHs8EFk_1775663051","X-Mimecast-Originator":"redhat.com","Content-Transfer-Encoding":"8bit","content-type":"text/plain; charset=\"US-ASCII\"; x-default=true","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>","Errors-To":"gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org"},"content":"SG-10 agreed on using 202604L value for paper P3961R0 that\nalso updates __cpp_lib_function_ref macro.\n\nlibstdc++-v3/ChangeLog:\n\n\t* include/bits/version.def (function_ref): Bump to 202603L.\n\t* include/bits/version.h: Regenerate.\n\t* testsuite/20_util/function_ref/assign.cc: Remove repeated\n\tcheck for feature test macro.\n\t* testsuite/20_util/function_ref/cons.cc: Updated checked\n\tvalue.\n---\nLightly tested on x86_64-linux. OK for trunk?\n\n\n libstdc++-v3/include/bits/version.def                 | 5 ++++-\n libstdc++-v3/include/bits/version.h                   | 4 ++--\n libstdc++-v3/testsuite/20_util/function_ref/assign.cc | 6 ------\n libstdc++-v3/testsuite/20_util/function_ref/cons.cc   | 2 +-\n 4 files changed, 7 insertions(+), 10 deletions(-)","diff":"diff --git a/libstdc++-v3/include/bits/version.def b/libstdc++-v3/include/bits/version.def\nindex f5d1ee5c3ac..a918485a846 100644\n--- a/libstdc++-v3/include/bits/version.def\n+++ b/libstdc++-v3/include/bits/version.def\n@@ -1961,9 +1961,12 @@ ftms = {\n };\n \n ftms = {\n+  // 202306 P0792R14 function_ref: a non-owning reference to a Callable\n+  // 202511 P3774R1  Rename std::nontype, and make it broadly useful\n+  // 202603 P3948R1  constant_wrapper is the only tool needed for passing...\n   name = function_ref;\n   values = {\n-    v = 202306;\n+    v = 202603;\n     cxxmin = 26;\n   };\n };\ndiff --git a/libstdc++-v3/include/bits/version.h b/libstdc++-v3/include/bits/version.h\nindex 086cf69041e..c6a5a6fd419 100644\n--- a/libstdc++-v3/include/bits/version.h\n+++ b/libstdc++-v3/include/bits/version.h\n@@ -2183,9 +2183,9 @@\n \n #if !defined(__cpp_lib_function_ref)\n # if (__cplusplus >  202302L)\n-#  define __glibcxx_function_ref 202306L\n+#  define __glibcxx_function_ref 202603L\n #  if defined(__glibcxx_want_all) || defined(__glibcxx_want_function_ref)\n-#   define __cpp_lib_function_ref 202306L\n+#   define __cpp_lib_function_ref 202603L\n #  endif\n # endif\n #endif /* !defined(__cpp_lib_function_ref) */\ndiff --git a/libstdc++-v3/testsuite/20_util/function_ref/assign.cc b/libstdc++-v3/testsuite/20_util/function_ref/assign.cc\nindex 9b02dc49c2a..ac96cecb477 100644\n--- a/libstdc++-v3/testsuite/20_util/function_ref/assign.cc\n+++ b/libstdc++-v3/testsuite/20_util/function_ref/assign.cc\n@@ -2,12 +2,6 @@\n \n #include <functional>\n \n-#ifndef __cpp_lib_function_ref\n-# error \"Feature-test macro for function_ref missing in <functional>\"\n-#elif __cpp_lib_function_ref != 202306L\n-# error \"Feature-test macro for function_ref has wrong value in <functional>\"\n-#endif\n-\n using std::nontype;\n using std::nontype_t;\n using std::function_ref;\ndiff --git a/libstdc++-v3/testsuite/20_util/function_ref/cons.cc b/libstdc++-v3/testsuite/20_util/function_ref/cons.cc\nindex a91f5ba3dab..d2c097c6361 100644\n--- a/libstdc++-v3/testsuite/20_util/function_ref/cons.cc\n+++ b/libstdc++-v3/testsuite/20_util/function_ref/cons.cc\n@@ -5,7 +5,7 @@\n \n #ifndef __cpp_lib_function_ref\n # error \"Feature-test macro for function_ref missing in <functional>\"\n-#elif __cpp_lib_function_ref != 202306L\n+#elif __cpp_lib_function_ref != 202603L\n # error \"Feature-test macro for function_ref has wrong value in <functional>\"\n #endif\n \n","prefixes":[]}