From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1734) id 8D8B63857C42; Tue, 15 Sep 2020 01:14:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8D8B63857C42 To: gcc-cvs-wwwdocs@gcc.gnu.org Subject: gcc-wwwdocs branch master updated. 2f6aed80eb795f66a26cab2b5eee598d68f76ae5 X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 2feaab534eb731bfc91f41b9e6f4afe9f6898828 X-Git-Newrev: 2f6aed80eb795f66a26cab2b5eee598d68f76ae5 Message-Id: <20200915011450.8D8B63857C42@sourceware.org> Date: Tue, 15 Sep 2020 01:14:50 +0000 (GMT) From: Marek Polacek 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: Tue, 15 Sep 2020 01:14:50 -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 2f6aed80eb795f66a26cab2b5eee598d68f76ae5 (commit) from 2feaab534eb731bfc91f41b9e6f4afe9f6898828 (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 2f6aed80eb795f66a26cab2b5eee598d68f76ae5 Author: Marek Polacek Date: Mon Sep 14 21:14:39 2020 -0400 Fix

tags. diff --git a/htdocs/gcc-11/porting_to.html b/htdocs/gcc-11/porting_to.html index e51285d9..5db00734 100644 --- a/htdocs/gcc-11/porting_to.html +++ b/htdocs/gcc-11/porting_to.html @@ -46,13 +46,12 @@ use the -std=gnu++14 command-line option, perhaps by putting it in CXXFLAGS or similar variables in Makefiles.

Template template parameter matching changes

-

-G++, starting with +

G++, starting with G++ 7, implements C++17 P0522R0, Matching of template template-arguments excludes compatible templates. As a -consequence, the following test is now rejected: +consequence, the following test is now rejected:


     template <int N, int M = N> class A;
     template <int N, int M> void fn(A<N, M> &) {}
@@ -60,15 +59,12 @@ consequence, the following test is now rejected:
     template void fn(A<3> &);
 
-because A is now considered a valid argument for TT, +

because A is now considered a valid argument for TT, so both function templates are valid candidates, and neither is more specialized -than the other, so it's ambiguous. -

-

-The new behavior can be disabled independently of other C++17 features with --fno-new-ttp-matching. -

+than the other, so it's ambiguous.

+

The new behavior can be disabled independently of other C++17 features with +-fno-new-ttp-matching.