{"id":2229744,"url":"http://patchwork.ozlabs.org/api/1.1/patches/2229744/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/patch/20260428164708.1422958-1-jwakely@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":"<20260428164708.1422958-1-jwakely@redhat.com>","date":"2026-04-28T16:46:31","name":"libstdc++: Update documentation about default -std option","commit_ref":null,"pull_url":null,"state":"new","archived":false,"hash":"ff86f57dd6317315a4d253a388ae3e700187bd97","submitter":{"id":48004,"url":"http://patchwork.ozlabs.org/api/1.1/people/48004/?format=json","name":"Jonathan Wakely","email":"jwakely@redhat.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/gcc/patch/20260428164708.1422958-1-jwakely@redhat.com/mbox/","series":[{"id":501903,"url":"http://patchwork.ozlabs.org/api/1.1/series/501903/?format=json","web_url":"http://patchwork.ozlabs.org/project/gcc/list/?series=501903","date":"2026-04-28T16:46:31","name":"libstdc++: Update documentation about default -std option","version":1,"mbox":"http://patchwork.ozlabs.org/series/501903/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2229744/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2229744/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=CcdrvShJ;\n\tdkim-atps=neutral","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;\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=CcdrvShJ","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\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 4g4mZh1Dkrz1xvV\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 29 Apr 2026 02:47:54 +1000 (AEST)","from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id E11B34BB3BFE\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 28 Apr 2026 16:47:52 +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 3BA4C4BA2E09\n for <gcc-patches@gcc.gnu.org>; Tue, 28 Apr 2026 16:47:14 +0000 (GMT)","from mx-prod-mc-01.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-464-Hb1PiP89Pf-QyJm4qH1Khg-1; Tue,\n 28 Apr 2026 12:47:12 -0400","from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com\n (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12])\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-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS\n id 5E9EF195609E; Tue, 28 Apr 2026 16:47:11 +0000 (UTC)","from zen.kayari.org (unknown [10.44.34.137])\n by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP\n id 19E5319560AB; Tue, 28 Apr 2026 16:47:09 +0000 (UTC)"],"DKIM-Filter":["OpenDKIM Filter v2.11.0 sourceware.org E11B34BB3BFE","OpenDKIM Filter v2.11.0 sourceware.org 3BA4C4BA2E09"],"DMARC-Filter":"OpenDMARC Filter v1.4.2 sourceware.org 3BA4C4BA2E09","ARC-Filter":"OpenARC Filter v1.0.0 sourceware.org 3BA4C4BA2E09","ARC-Seal":"i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1777394834; cv=none;\n b=DanAc4KRXxT5xuKXI6mRXeL5snZdmAFG+AxqpexuUcgGnjNpfAr9IeEWFU6wi9O6juV3o+U9ULEl8qtEnbiESXzuTE3sM+gJqg4sfKC1VKpfElmuwVoREe5/stlWPO+hoKoLbu2kZ76XAvj5X5ASn4GvzwajewcBazU8/9F9LOs=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1777394834; c=relaxed/simple;\n bh=NVkRTFdGX5Yyu+0zOJ51UZ8aaB3NMObH1LvfN0oAUq8=;\n h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;\n b=vu4hPnCMZKdjpcGpZzWjAkSW5ds6gc6jLM24JkLwuPCBiC5sX20XsGJB7OThFLj+jVPCYERq24KdKJJigLvRCUyOsDAi+ymZM2k/M607Uw2+wtB9iZl/50Omoe0Q8aOpJjze5J6nzv9mqUrYPg8Q04C92yfa1V4KYs0Qvd1SajQ=","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=1777394833;\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=GukNNL+dYK7MZEISNLqGPSTgVRocz5KoNKYxnOaugIQ=;\n b=CcdrvShJPcfPTEz3YxaCybRPRyVyZdcOTFtBKqwGq/Fp0Dtat0JTxXJx/MZf2GbBGaPUHv\n 7DIYtro0+fmkAtouZALHi2J/vk7QyN9Nq+RdyQxMMvTHA9CsRNGKviwVPK0GQaPaChefET\n SJUM66RhKH18KyBCIV6nu0427J2Mvgc=","X-MC-Unique":"Hb1PiP89Pf-QyJm4qH1Khg-1","X-Mimecast-MFC-AGG-ID":"Hb1PiP89Pf-QyJm4qH1Khg_1777394831","From":"Jonathan Wakely <jwakely@redhat.com>","To":"gcc-patches@gcc.gnu.org,\n\tlibstdc++@gcc.gnu.org","Subject":"[PATCH] libstdc++: Update documentation about default -std option","Date":"Tue, 28 Apr 2026 17:46:31 +0100","Message-ID":"<20260428164708.1422958-1-jwakely@redhat.com>","MIME-Version":"1.0","X-Scanned-By":"MIMEDefang 3.0 on 10.30.177.12","X-Mimecast-Spam-Score":"0","X-Mimecast-MFC-PROC-ID":"aW7vsWH3k2O0_dpwri_ag-lm-FD98t6kpQVIUbBmBRY_1777394831","X-Mimecast-Originator":"redhat.com","Content-Type":"text/plain","Content-Transfer-Encoding":"8bit","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":"libstdc++-v3/ChangeLog:\n\n\t* doc/xml/manual/using.xml (Flags): Update description of\n\tdefault value for -std option.\n\t* doc/html/manual/using.html: Regenerate.\n---\n\nI intend to push this to trunk.\n\nOK for the gcc-16 branch too?\n\n libstdc++-v3/doc/html/manual/using.html | 5 +++--\n libstdc++-v3/doc/xml/manual/using.xml   | 5 +++--\n 2 files changed, 6 insertions(+), 4 deletions(-)","diff":"diff --git a/libstdc++-v3/doc/html/manual/using.html b/libstdc++-v3/doc/html/manual/using.html\nindex 27f503ecaccc..32a1c726cb1e 100644\n--- a/libstdc++-v3/doc/html/manual/using.html\n+++ b/libstdc++-v3/doc/html/manual/using.html\n@@ -11,8 +11,9 @@\n       The standard library conforms to the dialect of C++ specified by the\n       <code class=\"option\">-std</code> option passed to the compiler.\n       By default, <span class=\"command\"><strong>g++</strong></span> is equivalent to\n-      <span class=\"command\"><strong>g++ -std=gnu++17</strong></span> since GCC 11, and\n-      <span class=\"command\"><strong>g++ -std=gnu++14</strong></span> in GCC 6, 7, 8, 9, and 10, and\n+      <span class=\"command\"><strong>g++ -std=gnu++20</strong></span> since GCC 16, and\n+      <span class=\"command\"><strong>g++ -std=gnu++17</strong></span> in GCC 11-15, and\n+      <span class=\"command\"><strong>g++ -std=gnu++14</strong></span> in GCC 6-10, and\n       <span class=\"command\"><strong>g++ -std=gnu++98</strong></span> for older releases.\n     </p><div class=\"table\"><a id=\"table.cmd_options\"></a><p class=\"title\"><strong>Table 3.1. C++ Command Options</strong></p><div class=\"table-contents\"><table class=\"table\" summary=\"C++ Command Options\" border=\"1\"><colgroup><col align=\"left\" class=\"c1\" /><col align=\"left\" class=\"c2\" /></colgroup><thead><tr><th align=\"left\">Option Flags</th><th align=\"left\">Description</th></tr></thead><tbody><tr><td align=\"left\"><code class=\"literal\">-std</code>\n       </td><td align=\"left\">\ndiff --git a/libstdc++-v3/doc/xml/manual/using.xml b/libstdc++-v3/doc/xml/manual/using.xml\nindex 682669d91d4b..e2e75e8fe28c 100644\n--- a/libstdc++-v3/doc/xml/manual/using.xml\n+++ b/libstdc++-v3/doc/xml/manual/using.xml\n@@ -16,8 +16,9 @@\n       The standard library conforms to the dialect of C++ specified by the\n       <option>-std</option> option passed to the compiler.\n       By default, <command>g++</command> is equivalent to\n-      <command>g++ -std=gnu++17</command> since GCC 11, and\n-      <command>g++ -std=gnu++14</command> in GCC 6, 7, 8, 9, and 10, and\n+      <command>g++ -std=gnu++20</command> since GCC 16, and\n+      <command>g++ -std=gnu++17</command> in GCC 11-15, and\n+      <command>g++ -std=gnu++14</command> in GCC 6-10, and\n       <command>g++ -std=gnu++98</command> for older releases.\n     </para>\n \n","prefixes":[]}