From patchwork Mon Jul 22 06:51:42 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gerald Pfeifer X-Patchwork-Id: 1963092 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=pfeifer.com header.i=@pfeifer.com header.a=rsa-sha256 header.s=pair-202402271039 header.b=ed8lp5KJ; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WS9tv3fV7z1yZ7 for ; Mon, 22 Jul 2024 16:52:07 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id B4E9D3858C53 for ; Mon, 22 Jul 2024 06:52:05 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from hamza.pair.com (hamza.pair.com [209.68.5.143]) by sourceware.org (Postfix) with ESMTPS id 7F4D73858C53 for ; Mon, 22 Jul 2024 06:51:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7F4D73858C53 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=pfeifer.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=pfeifer.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 7F4D73858C53 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=209.68.5.143 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721631108; cv=none; b=ZiHParSl4hnNNEGEG1T4qs078/iHHd7f98Qh36medpr5mkA1yS+Mkhak/k6dtvEiFdPGaoc4mlxfOrlxglOjx1lFOFGkCr1qK8AWhW6O1UQOqCPrGgGYKboBBV85ZaR5fxt6OmXbJeaD9SJ2sIwAFGlORMSi81RUEWZZMghDK+Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1721631108; c=relaxed/simple; bh=8zi4VmtULkU1olBSU7kIeqZS4HTxw9m5eVFFQVxed6c=; h=Date:From:To:Subject:Message-ID:MIME-Version:DKIM-Signature; b=C/LJ61aewu7zt7ywQeNlu3jP4GNmQraKym1Mr2zsfMVSBOrwe6pN2rcULYpYdKDH7XE19rFHFW9TxIL70nm5EUWkz0xvfmu/rHfBXFXc4H2fbqJ5oAhPVH6t1Umy51eKtB03De4LX6xRR9lShTMOLDsD4rvORvsyc+TshyNemLk= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from hamza.pair.com (localhost [127.0.0.1]) by hamza.pair.com (Postfix) with ESMTP id F1B9733EAC; Mon, 22 Jul 2024 02:51:45 -0400 (EDT) Received: from daya.localdomain (188-23-62-249.adsl.highway.telekom.at [188.23.62.249]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by hamza.pair.com (Postfix) with ESMTPSA id DA1BF33EAB; Mon, 22 Jul 2024 02:51:44 -0400 (EDT) Date: Mon, 22 Jul 2024 08:51:42 +0200 (CEST) From: Gerald Pfeifer To: gcc-patches@gcc.gnu.org, Jonathan Wakely , Jason Merrill Subject: [PATCH,c++,wwwdocs] bugs: Remove old "export" non-bug Message-ID: <53b4441c-93fd-6455-3ce2-eca63182f125@pfeifer.com> MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pfeifer.com; h=date:from:to:subject:message-id:mime-version:content-type; s=pair-202402271039; bh=hNOeVbyJe17p1929w+xzF2U8Js6XbtCAhHapLasPVz0=; b=ed8lp5KJsysFVP+eOGBF3xC0m4xT1Odgfv2ke+tvioK57c/qznR4zgf3H0qjLdDigP89UKKnyRA1dWINUwrHdKllWYlSDtUCqa9AEpeZk//J/sDsNmpIzZkajobOnFcHtRO3oybSOEvAxl4Taxf9g9v8UV3mika3MSad+IeprXdoxKCoO98uh/mw6eI6GmYLzCWl+Ie39wJRgWFtC6dA8ajlT3zyoOLuks8X9kokt4vmVaC+sYlv1wZiuIutLpLVFrkBarUBFD2CnPApuuuwGMjL/glpI0G3cDQvLoOqeoCJGh9wOZCSEJLNsXP6VAtVU1Ks1tA82D/7KeRacDEkEA== X-Scanned-By: mailmunge 3.11 on 209.68.5.143 X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org We have been carrying this note on the "original" export feature for ages, and I believe it's not actually a FAQ, if it ever was. Jonathan moved this down when adding a note on ADL last fall. I now propose to drop it. Thoughts? Gerald diff --git a/htdocs/bugs/index.html b/htdocs/bugs/index.html index 40355911..7f2f485c 100644 --- a/htdocs/bugs/index.html +++ b/htdocs/bugs/index.html @@ -622,17 +622,6 @@ and the scope operator, or compile using C++11 or later. Defect report 1104 changed the parser rules so that <:: works as expected.

-
export
-

Most C++ compilers (G++ included) never implemented C++98 -export, which was removed in C++11, and the keyword reused in -C++20 by the Modules feature. The C++98 feature was intended to support -separate compilation of template declarations and -definitions. Without export, a template definition must be in -scope to be used. The obvious workaround is simply to place all definitions in -the header itself. Alternatively, the compilation unit containing template -definitions may be included from the header.

- -

Common problems when upgrading the compiler

ABI changes