From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2122) id AEEE1385DC10; Wed, 11 Aug 2021 00:35:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AEEE1385DC10 To: gcc-cvs-wwwdocs@gcc.gnu.org Subject: gcc-wwwdocs branch master updated. 7648e9e0869aaf51ac53c8430bc603474d8a88f3 X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: b0b06710297dd9b104d095a7ccab51e2e30f27b0 X-Git-Newrev: 7648e9e0869aaf51ac53c8430bc603474d8a88f3 Message-Id: <20210811003516.AEEE1385DC10@sourceware.org> Date: Wed, 11 Aug 2021 00:35:16 +0000 (GMT) From: Jason Merrill X-BeenThere: gcc-cvs-wwwdocs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs-wwwdocs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2021 00:35:16 -0000 This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "gcc-wwwdocs". The branch, master has been updated via 7648e9e0869aaf51ac53c8430bc603474d8a88f3 (commit) from b0b06710297dd9b104d095a7ccab51e2e30f27b0 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 7648e9e0869aaf51ac53c8430bc603474d8a88f3 Author: Jason Merrill Date: Tue Aug 10 20:34:40 2021 -0400 Update "export" entry in nonbugs diff --git a/htdocs/bugs/index.html b/htdocs/bugs/index.html index 80dac392..0a1b582a 100644 --- a/htdocs/bugs/index.html +++ b/htdocs/bugs/index.html @@ -536,12 +536,13 @@ for details.
export
-

Most C++ compilers (G++ included) do not yet implement -export, which is necessary for 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 +

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.

Nested classes can access private members and types of the containing ----------------------------------------------------------------------- Summary of changes: htdocs/bugs/index.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) hooks/post-receive -- gcc-wwwdocs