Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2221614/?format=api
{ "id": 2221614, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2221614/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260409235842.842438-1-sloosemore@baylibre.com/", "project": { "id": 17, "url": "http://patchwork.ozlabs.org/api/1.1/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 }, "msgid": "<20260409235842.842438-1-sloosemore@baylibre.com>", "date": "2026-04-09T23:58:42", "name": "[PUSHED] doc, c++: Document that anonymous namespaces have internal linkage [PR124773]", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "c5172bb7b020bb3513179ac084d0a38cfdb42fbf", "submitter": { "id": 87955, "url": "http://patchwork.ozlabs.org/api/1.1/people/87955/?format=api", "name": "Sandra Loosemore", "email": "sloosemore@baylibre.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260409235842.842438-1-sloosemore@baylibre.com/mbox/", "series": [ { "id": 499371, "url": "http://patchwork.ozlabs.org/api/1.1/series/499371/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=499371", "date": "2026-04-09T23:58:42", "name": "[PUSHED] doc, c++: Document that anonymous namespaces have internal linkage [PR124773]", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/499371/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2221614/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2221614/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 (2048-bit key;\n unprotected) header.d=baylibre-com.20251104.gappssmtp.com\n header.i=@baylibre-com.20251104.gappssmtp.com header.a=rsa-sha256\n header.s=20251104 header.b=Ct7I16on;\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 (2048-bit key,\n unprotected) header.d=baylibre-com.20251104.gappssmtp.com\n header.i=@baylibre-com.20251104.gappssmtp.com header.a=rsa-sha256\n header.s=20251104 header.b=Ct7I16on", "sourceware.org;\n dmarc=none (p=none dis=none) header.from=baylibre.com", "sourceware.org; spf=pass smtp.mailfrom=baylibre.com", "server2.sourceware.org;\n arc=none smtp.remote-ip=209.85.210.54" ], "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 4fsH4H3wy1z1y05\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 10 Apr 2026 10:00:14 +1000 (AEST)", "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id 61C684BA2E35\n\tfor <incoming@patchwork.ozlabs.org>; Fri, 10 Apr 2026 00:00:12 +0000 (GMT)", "from mail-ot1-f54.google.com (mail-ot1-f54.google.com\n [209.85.210.54])\n by sourceware.org (Postfix) with ESMTPS id 09A954BA2E10\n for <gcc-patches@gcc.gnu.org>; Thu, 9 Apr 2026 23:58:48 +0000 (GMT)", "by mail-ot1-f54.google.com with SMTP id\n 46e09a7af769-7dbcb467f2bso1470739a34.3\n for <gcc-patches@gcc.gnu.org>; Thu, 09 Apr 2026 16:58:47 -0700 (PDT)", "from nenufar.hsd1.co.comcast.net ([2601:281:d901:97c0::9a27])\n by smtp.gmail.com with ESMTPSA id\n 46e09a7af769-7dc26907f82sm869271a34.17.2026.04.09.16.58.46\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Thu, 09 Apr 2026 16:58:46 -0700 (PDT)" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org 61C684BA2E35", "OpenDKIM Filter v2.11.0 sourceware.org 09A954BA2E10" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 09A954BA2E10", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 09A954BA2E10", "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1775779128; cv=none;\n b=gM8Ua5T3pKM4i23guGG7thT5V+PvNKwqPHAbyw+UQDLfOv3iVf67lkEGDP2SehnwLxQacmwkj+of8sYbftLzFSzvmHiToo8p0zx8eAQ9A46LnPqpbdPtkpldFLA4ocCWMdyClLfZii0S1kMJ+g+KVt/fHOa+QpDygQSx4y9FieE=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1775779128; c=relaxed/simple;\n bh=Ark8NfTaAdeo0ODgR7MfqKLXJjIoOk7/9w7rB/0aJM8=;\n h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version;\n b=OKj8CD7PFI6sA0gCB5cPWmXmkkTwP8tc41F+KJ+e7jJJQG18uGIp/GYXlIUmH+taVvCOj8oTV5trDg/xYoibO9VpNl0TB+JLxjsOy03g3FlOn1/fc5DEm7H87/2TxvSq2eGic8H4gyLkK8H137rR9QTAhG52MLmH9o3z/j9Lg5U=", "ARC-Authentication-Results": "i=1; server2.sourceware.org", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=baylibre-com.20251104.gappssmtp.com; s=20251104; t=1775779127;\n x=1776383927;\n darn=gcc.gnu.org;\n h=content-transfer-encoding:mime-version:message-id:date:subject:to\n :from:from:to:cc:subject:date:message-id:reply-to;\n bh=g7o37Zmq9a/Bmfw40ZOJgGh3do4df7H48t5/nqdTZXs=;\n b=Ct7I16onroOe84O8WhJJNnkqIee5IPCOXE84pAJ6bFo1I2G+WW+6U76pCOgWbweYIE\n 28RAzi/0E5rXs5oHdSHFjePNX78TYJRFwW+LfprBz1hjXab0c8PLSfuomdQICbG3h8zH\n 3Lf9v5CdthviVSyfygrX4N3zwrOlPADnuWZ48Ytx8wqqfXWIhh7gXxM6D4fcDIupPHJj\n xFQ6iyvYJ31d/C5zQurze06a3z45/Fy3zWXWVYPahSdyG2XN0HSsFy+GZXNNk6gXE2DN\n d3/BYYjsMTUGCwkQriCPiptrgujtJ3CWVl+GjB0BoWXKjlyXnMClzLB+YUGXYjBE5Dwq\n 6xXw==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20251104; t=1775779127; x=1776383927;\n h=content-transfer-encoding:mime-version:message-id:date:subject:to\n :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id\n :reply-to;\n bh=g7o37Zmq9a/Bmfw40ZOJgGh3do4df7H48t5/nqdTZXs=;\n b=i+1ugC9jaL/FGtH0MziBoA2YW6WQ/Ydh6uzsDiX10hG9K138eiYV6EsAf+Pifk5Qrr\n YnH6TewoP8sSIX0OxjTBCdUR2YYQngsWVBj5FFw+/5J+MTpkEmObvsnvAbYKIVioVKB/\n /Zax9PNT9midCBmflNNjx2ucqrJjKC6VZq7xn7WIZeoXUj4EyA89T9/ZjGyZfV8sXDmA\n 1IgKWSvmQTQ3nzEJMTC9WnKyGU/KPbcicHXti62670jX1idJaPWB7wooPcZHzkUrp33W\n tO4vIbeIoWIpTTv42tRDykA6VQfvSJ2munw1YO6oiuU31vWM3BMqlqkuw917QUzhg+a/\n I2/A==", "X-Gm-Message-State": "AOJu0YzKLgwb35HpjVO81QS8mhfuZpIs23iQBuYmTbq587gcW9kOt4Hf\n 70BGEVH0UyOZxg855gthG5mgUGCywqVXThwWm+vw2pZYFWWDr3WwtD/pB+F1+RVAWDVIluKiQog\n AGlA7", "X-Gm-Gg": "AeBDiesQysklwiA7L67nNAtgZGO0PQKknMlIIky9UDs3IakNwqDGFF0FBYbmsDUHtgQ\n E6CPhG6gYlVj9qewJgKabr1wK8tMmwYc2NfSu8ohzjVaECbgvZNsEd2AFRTahELPp/aiz3EYyTL\n lGwgifeuuqT0U1HK6e358jjGmHLfvHaVFHJZPnIzKlGUfzNaRWROoVZHZtGr4KKpzNCPUtaDDsB\n h8oZMzB8gkG8hM446hdMlIK4pHvJ+R9HgnnMfi5aWb+bfcjEg/i+lf9B1GnXfHw1ZtJWtPVh7Xu\n r938O79aN7qq1UMiPu+XU9JPtvPasWvap4osF/ih/BrawVteiwd1WsP7aYZ4jtqLbb+Uie+ftrX\n C21/01na2wR5q0lvqGw0fTqctJZQutg8Ib5KDeeIlMU+uNfoJJsfH5mZ+rDHOX6zMpZFE4ds8x4\n snf2TJ7Kp4zSoEr1yco0khxARRSF9L2mim", "X-Received": "by 2002:a05:6830:3984:b0:7d7:ef0a:1ceb with SMTP id\n 46e09a7af769-7dc27e2f0c5mr954378a34.9.1775779127025;\n Thu, 09 Apr 2026 16:58:47 -0700 (PDT)", "From": "Sandra Loosemore <sloosemore@baylibre.com>", "To": "gcc-patches@gcc.gnu.org", "Subject": "[PUSHED] doc,\n c++: Document that anonymous namespaces have internal linkage\n [PR124773]", "Date": "Thu, 9 Apr 2026 17:58:42 -0600", "Message-Id": "<20260409235842.842438-1-sloosemore@baylibre.com>", "X-Mailer": "git-send-email 2.34.1", "MIME-Version": "1.0", "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": "gcc/ChangeLog\n\tPR c++/124773\n\t* doc/trouble.texi (Linkage in Anonymous Namespaces): New section.\n---\n gcc/doc/trouble.texi | 16 ++++++++++++++++\n 1 file changed, 16 insertions(+)", "diff": "diff --git a/gcc/doc/trouble.texi b/gcc/doc/trouble.texi\nindex ad13357c30a..4882e2fabab 100644\n--- a/gcc/doc/trouble.texi\n+++ b/gcc/doc/trouble.texi\n@@ -638,6 +638,7 @@ give rise to questions of this sort.\n * Name lookup:: Name lookup, templates, and accessing members of base classes\n * Temporaries:: Temporaries may vanish before you expect\n * Copy Assignment:: Copy Assignment operators copy virtual bases twice\n+* Linkage in Anonymous Namespaces:: Names have internal linkage\n @end menu\n \n @node Static Definitions\n@@ -912,6 +913,21 @@ copy-assignment operator removes any uncertainties. With such an\n operator, the application can define whether and how the virtual base\n subobject is assigned.\n \n+@node Linkage in Anonymous Namespaces\n+@subsection Linkage in Anonymous Namespaces\n+\n+The C++11 standard changed the linkage of anonymous namespaces from\n+external (using a unique generated name) to internal. That means that\n+names declared in such a namespace now also have internal linkage, and\n+@code{extern \"C\"} has no effect. GCC implemented this change in\n+behavior starting with the GCC 15 release; code using this idiom that\n+worked in earlier versions of GCC, or with @option{-std=} options\n+prior to C++11, may encounter unexpected linker issues due to changes\n+in name mangling.\n+\n+For more information about the change to the C++ standard, see\n+@uref{https://cplusplus.github.io/CWG/issues/2772.html}.\n+\n @node Non-bugs\n @section Certain Changes We Don't Want to Make\n \n", "prefixes": [ "PUSHED" ] }