{"id":2226093,"url":"http://patchwork.ozlabs.org/api/patches/2226093/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/patch/20260422082732.318845-1-tkaminsk@redhat.com/","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":"<20260422082732.318845-1-tkaminsk@redhat.com>","list_archive_url":null,"date":"2026-04-22T08:27:12","name":"libstdc++: Add _GLIBCXX_RESOLVE_LIB_DEFECTS for alredy implemented issues.","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"53cd4872fd2fc9925b955e31928aa39034e5e039","submitter":{"id":90409,"url":"http://patchwork.ozlabs.org/api/people/90409/?format=json","name":"Tomasz Kaminski","email":"tkaminsk@redhat.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/gcc/patch/20260422082732.318845-1-tkaminsk@redhat.com/mbox/","series":[{"id":500942,"url":"http://patchwork.ozlabs.org/api/series/500942/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/list/?series=500942","date":"2026-04-22T08:27:12","name":"libstdc++: Add _GLIBCXX_RESOLVE_LIB_DEFECTS for alredy implemented issues.","version":1,"mbox":"http://patchwork.ozlabs.org/series/500942/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2226093/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2226093/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\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=G7d2WVrE;\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=G7d2WVrE","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 4g0sn02YG3z1yCv\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 18:28:20 +1000 (AEST)","from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 0425A4BA902C\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 22 Apr 2026 08:28:18 +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 BC47F4BA2E3A\n for <gcc-patches@gcc.gnu.org>; Wed, 22 Apr 2026 08:27:37 +0000 (GMT)","from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com\n (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by\n relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n cipher=TLS_AES_256_GCM_SHA384) id us-mta-398-cQJ3xUD_Mo2N8a6_RLhCHg-1; Wed,\n 22 Apr 2026 04:27:36 -0400","from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93])\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-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id E6E941956094; Wed, 22 Apr 2026 08:27:34 +0000 (UTC)","from localhost (unknown [10.44.48.183])\n by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id 506CE180047F; Wed, 22 Apr 2026 08:27:33 +0000 (UTC)"],"DKIM-Filter":["OpenDKIM Filter v2.11.0 sourceware.org 0425A4BA902C","OpenDKIM Filter v2.11.0 sourceware.org BC47F4BA2E3A"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org BC47F4BA2E3A","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org BC47F4BA2E3A","ARC-Seal":"i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1776846457; cv=none;\n b=Vr4r3trP08MoK0cwEm/q1tPvWrD2zImxLlbqOzr0IKqWsQOtIvbdl16yFxromJCmrR/n9EfqOGD7ZwA2PeqdERqlTbnVT3tr7zqCVsslLuBGqmV3SA5u8q+jp7dQAFQMPQRlthJfJ+ShjPN8doL0MzoTQLhsoN/gXrSuyxqMi8o=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1776846457; c=relaxed/simple;\n bh=EPfSPr+U9elxnADr2c08TTktO+YAlt6vW/Mlt2H4icA=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=HBOWjOOYD/ZBxS5hULGOL636SS9gtKiJpKAmGotJSjlNlb+gdvoL+9IyM8MDwzLOh/bTPb8E2pJRbG5ytcLWrvyMWplT5y5jtYcInuOPUc35ElG6/LpSSxiBW9J4JWMa01dpXisBvO8cabGZzHWXbMgOBuX2h6RZFR0hbJi7spA=","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=1776846457;\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=A3b1Iz/ycEAXjrE0Rk8JXOoXDuAOr5JdzYqZx95Hww8=;\n b=G7d2WVrEm7n5UxSK8hB02iFCMYXnmExHb2dKdcTcw4zYPLyVTwTi6dQIUEylMMZt8laOCs\n T0It/wuDr0QmKynYkHUApFwq+Znw/rj/PEl7vzRfKRTEJ//mHJc76hBxj9vr/9hrc7fEFx\n LEGooc/Gnooj6J+o2B6EErJP0yjMX3Q=","X-MC-Unique":"cQJ3xUD_Mo2N8a6_RLhCHg-1","X-Mimecast-MFC-AGG-ID":"cQJ3xUD_Mo2N8a6_RLhCHg_1776846455","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++: Add _GLIBCXX_RESOLVE_LIB_DEFECTS for alredy\n implemented issues.","Date":"Wed, 22 Apr 2026 10:27:12 +0200","Message-ID":"<20260422082732.318845-1-tkaminsk@redhat.com>","MIME-Version":"1.0","X-Scanned-By":"MIMEDefang 3.4.1 on 10.30.177.93","X-Mimecast-Spam-Score":"0","X-Mimecast-MFC-PROC-ID":"8dRf9YLH6SIrPJlR4jvmOS57VbCTvXYKXh_phxaOX38_1776846455","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":"This covers issue affecting pre-C+26 features that were resolved\nduring 2026 Croydon meeting.\n\nlibstdc++-v3/ChangeLog:\n\n\t* include/bits/chrono_io.h: Add comment for LWG3831.\n\t* include/bits/print.h: Add comment for LWG4549.\n\t* include/std/condition_variable: Add comment for LWG3504.\n\t* include/std/format: Add comments for LWG4522.\n\t* include/std/inplace_vector: Add comment for LWG4122.\n\t* include/std/mdspan: Add comment for LWG4314.\n\t* include/std/optional: Add comment for LWG2746.\n---\nOK for trunk?\n\n libstdc++-v3/include/bits/chrono_io.h       | 2 ++\n libstdc++-v3/include/bits/print.h           | 2 ++\n libstdc++-v3/include/std/condition_variable | 2 ++\n libstdc++-v3/include/std/format             | 4 ++++\n libstdc++-v3/include/std/mdspan             | 2 ++\n libstdc++-v3/include/std/optional           | 2 ++\n 6 files changed, 14 insertions(+)","diff":"diff --git a/libstdc++-v3/include/bits/chrono_io.h b/libstdc++-v3/include/bits/chrono_io.h\nindex f5a0a65a48d..1fe50ad79e0 100644\n--- a/libstdc++-v3/include/bits/chrono_io.h\n+++ b/libstdc++-v3/include/bits/chrono_io.h\n@@ -1313,6 +1313,8 @@ namespace __format\n \n \t  int __yi = (int)__y;\n \t  const bool __is_neg = __yi < 0;\n+\t  // _GLIBCXX_RESOLVE_LIB_DEFECTS\n+\t  // 3831. Two-digit formatting of negative year is ambiguous\n \t  __yi = __builtin_abs(__yi);\n \t  int __ci = __yi / 100;\n \t  // For floored division -123//100 is -2 and -100//100 is -1\ndiff --git a/libstdc++-v3/include/bits/print.h b/libstdc++-v3/include/bits/print.h\nindex 17567f2f554..20724844726 100644\n--- a/libstdc++-v3/include/bits/print.h\n+++ b/libstdc++-v3/include/bits/print.h\n@@ -282,6 +282,8 @@ namespace __format\n   vprint_nonunicode_buffered(FILE* __stream, string_view __fmt,\n \t\t\t     format_args __args)\n   {\n+    // _GLIBCXX_RESOLVE_LIB_DEFECTS\n+    // 4549. vprint_nonunicode_buffered ignores its stream parameter\n     __format::_Str_sink<char> __buf;\n     std::vformat_to(__buf.out(), __fmt, __args);\n     auto __out = __buf.view();\ndiff --git a/libstdc++-v3/include/std/condition_variable b/libstdc++-v3/include/std/condition_variable\nindex 9e515123e7c..ce995ed5777 100644\n--- a/libstdc++-v3/include/std/condition_variable\n+++ b/libstdc++-v3/include/std/condition_variable\n@@ -163,6 +163,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION\n       wait_for(unique_lock<mutex>& __lock,\n \t       const chrono::duration<_Rep, _Period>& __rtime)\n       {\n+\t// _GLIBCXX_RESOLVE_LIB_DEFECTS\n+\t// 3504. condition_variable::wait_for is overspecified\n \tusing __dur = typename steady_clock::duration;\n \treturn wait_until(__lock,\n \t\t\t  steady_clock::now() +\ndiff --git a/libstdc++-v3/include/std/format b/libstdc++-v3/include/std/format\nindex 92add1e0a01..4627381fa9e 100644\n--- a/libstdc++-v3/include/std/format\n+++ b/libstdc++-v3/include/std/format\n@@ -1718,6 +1718,8 @@ namespace __format\n \t    {\n \t      _CharT __wbuf[__buf_size];\n \t      size_t __n = __narrow_str.size();\n+\t      // _GLIBCXX_RESOLVE_LIB_DEFECTS\n+\t      // 4522. Clarify that `std::format` transcodes for `std::wformat_strings`\n \t      std::__to_wstring_numeric(__narrow_str.data(), __n, __wbuf);\n \t      return _M_format_int(basic_string_view<_CharT>(__wbuf, __n),\n \t\t\t\t   __prefix_len, __fc);\n@@ -2304,6 +2306,8 @@ namespace __format\n #ifdef _GLIBCXX_USE_WCHAR_T\n \t  else\n \t    {\n+\t      // _GLIBCXX_RESOLVE_LIB_DEFECTS\n+\t      // 4522. Clarify that `std::format` transcodes for `std::wformat_strings`\n \t      __wstr = std::__to_wstring_numeric(__narrow_str);\n \t      __str = __wstr;\n \t    }\ndiff --git a/libstdc++-v3/include/std/mdspan b/libstdc++-v3/include/std/mdspan\nindex f30c5e83d16..14d8edc8ad1 100644\n--- a/libstdc++-v3/include/std/mdspan\n+++ b/libstdc++-v3/include/std/mdspan\n@@ -103,6 +103,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION\n \t  }\n \telse\n \t  {\n+\t    // _GLIBCXX_RESOLVE_LIB_DEFECTS\n+\t    // 4314. Missing move in mdspan layout mapping::operator()\n \t    auto __ret = static_cast<_IndexType>(std::forward<_OIndexTypeRef>(__other));\n \t    if constexpr (std::is_signed_v<_IndexType>)\n \t      __glibcxx_assert(__ret >= 0);\ndiff --git a/libstdc++-v3/include/std/optional b/libstdc++-v3/include/std/optional\nindex 49ba7b6b45d..d0fa306addb 100644\n--- a/libstdc++-v3/include/std/optional\n+++ b/libstdc++-v3/include/std/optional\n@@ -1145,6 +1145,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION\n \t  return *this;\n \t}\n \n+      // _GLIBCXX_RESOLVE_LIB_DEFECTS\n+      // 2746. Inconsistency between requirements for emplace between optional and variant\n       template<typename... _Args>\n \t_GLIBCXX20_CONSTEXPR\n \tenable_if_t<is_constructible_v<_Tp, _Args...>, _Tp&>\n","prefixes":[]}