From: Jason Merrill <jason@redhat.com>
To: Patrick Palka <ppalka@redhat.com>, gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] c++: constness of decltype of NTTP object [PR98820]
Date: Sat, 16 Sep 2023 16:26:05 -0400 [thread overview]
Message-ID: <8348062b-aeaa-56e4-71d5-c447b5b4d766@redhat.com> (raw)
In-Reply-To: <20230915175534.2315315-1-ppalka@redhat.com>
On 9/15/23 13:55, Patrick Palka wrote:
> This corrects decltype of a (class) NTTP object as per
> [dcl.type.decltype]/1.2 and [temp.param]/6 in the type-dependent case.
> In the non-dependent case (nontype-class8.C) we resolve the decltype
> ahead of time, and finish_decltype_type already made sure to drop the
> const VIEW_CONVERT_EXPR wrapper around the TEMPLATE_PARM_INDEX.
Hmm, seems like dropping the VIEW_CONVERT_EXPR is wrong in this case?
I'm not sure why I added that.
Jason
next prev parent reply other threads:[~2023-09-16 20:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-15 17:55 Patrick Palka
2023-09-16 20:26 ` Jason Merrill [this message]
2023-09-16 22:00 ` Patrick Palka
2023-09-18 2:46 ` Jason Merrill
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=8348062b-aeaa-56e4-71d5-c447b5b4d766@redhat.com \
--to=jason@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=ppalka@redhat.com \
/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).