]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c++: Fix last change.
authorMarek Polacek <polacek@redhat.com>
Tue, 20 Oct 2020 16:33:39 +0000 (12:33 -0400)
committerMarek Polacek <polacek@redhat.com>
Tue, 20 Oct 2020 16:34:49 +0000 (12:34 -0400)
gcc/cp/ChangeLog:

* pt.c (tsubst_copy_and_build): Use cxx2a.

gcc/cp/pt.c

index e034f6f7b83554524efdaecc2ecb420a578e11d3..2a0f2527d8c59b272e9e5104335a410b8200aa90 100644 (file)
@@ -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