From: Marek Polacek Date: Tue, 20 Oct 2020 16:33:39 +0000 (-0400) Subject: c++: Fix last change. X-Git-Tag: releases/gcc-10.3.0~748 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64b07803bbf0f5765361b6352894da9da70f63a4;p=thirdparty%2Fgcc.git c++: Fix last change. gcc/cp/ChangeLog: * pt.c (tsubst_copy_and_build): Use cxx2a. --- diff --git a/gcc/cp/pt.c b/gcc/cp/pt.c index e034f6f7b835..2a0f2527d8c5 100644 --- a/gcc/cp/pt.c +++ b/gcc/cp/pt.c @@ -19326,7 +19326,7 @@ tsubst_copy_and_build (tree t, { /* C++20 P0846: we can encounter an IDENTIFIER_NODE here when name lookup found nothing when parsing the template name. */ - gcc_assert (cxx_dialect >= cxx20 || seen_error ()); + gcc_assert (cxx_dialect >= cxx2a || seen_error ()); RETURN (tid); } else