public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/98810] [9/10 Regression] [C++20] ICE in tsubst_copy, at cp/pt.c:16771
Date: Thu, 04 Mar 2021 04:49:19 +0000	[thread overview]
Message-ID: <bug-98810-4-Xw7EoiO5iz@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-98810-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98810

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jason Merrill
<jason@gcc.gnu.org>:

https://gcc.gnu.org/g:bf49d83570ddb4df7893c3d605f7fc89db13792d

commit r10-9412-gbf49d83570ddb4df7893c3d605f7fc89db13792d
Author: Jason Merrill <jason@redhat.com>
Date:   Thu Feb 25 16:47:53 2021 -0500

    c++: Fix class NTTP constness handling [PR98810]

    Here, when substituting still-dependent args into an alias template, we see
    a non-const type because the default argument is non-const, and is not a
    template parm object because it's still dependent.

    gcc/cp/ChangeLog:

            PR c++/98810
            * pt.c (tsubst_copy) [VIEW_CONVERT_EXPR]: Add const
            to a class non-type template argument that needs it.

    gcc/testsuite/ChangeLog:

            PR c++/98810
            * g++.dg/cpp2a/nontype-class-defarg1.C: New test.

  parent reply	other threads:[~2021-03-04  4:49 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-24 20:31 [Bug c++/98810] New: " dimitri.gorokhovik at free dot fr
2021-01-25  9:42 ` [Bug c++/98810] " rguenth at gcc dot gnu.org
2021-02-12  4:51 ` [Bug c++/98810] [9/10/11 Regression] " mpolacek at gcc dot gnu.org
2021-02-26  3:57 ` cvs-commit at gcc dot gnu.org
2021-02-26  4:02 ` [Bug c++/98810] [9/10 " jason at gcc dot gnu.org
2021-03-04  4:49 ` cvs-commit at gcc dot gnu.org [this message]
2021-03-04  5:13 ` cvs-commit at gcc dot gnu.org
2021-03-05  9:13 ` clyon at gcc dot gnu.org
2021-03-05 14:02 ` mpolacek at gcc dot gnu.org
2021-04-05 21:43 ` jason at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-98810-4-Xw7EoiO5iz@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).