From: Dodji Seketeli <dodji@redhat.com>
To: Gabriel Dos Reis <gdr@integrable-solutions.net>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>, Jason Merrill <jason@redhat.com>
Subject: Re: [PATCH] PR c++/55663 - constexpr function templ instantiation considered non-const as alias templ arg
Date: Wed, 09 Jan 2013 15:31:00 -0000 [thread overview]
Message-ID: <87hamqtlum.fsf@redhat.com> (raw)
In-Reply-To: <CAAiZkiCPPTmoXZnJTZ+MMAB5tmwEQut7vKZR=+KTb3ckZTHKhQ@mail.gmail.com> (Gabriel Dos Reis's message of "Tue, 8 Jan 2013 10:44:38 -0600")
Gabriel Dos Reis <gdr@integrable-solutions.net> writes:
> We already have various predicates to test for constant
> expressions so I am uneasy to add yet another one.
I understand. I got lost in the number of existing predicates to test
for constant expressions, to the point that I thought (wrongly) the one
I wanted wasn't present. :-)
> I think reduced_constant_expression_p is what you want.
Thanks. I didn't realize this would work because the comment of
initializer_constant_valid_p (that it uses) says:
We assume that VALUE has been folded as much as possible
On a side node, as Jason said in the thread, we might not even need to
touch anything here, as check_instantiated_arg also assumes that its arg
has been fully folded. I guess I'll propose to update the comment of
that function to reflect that assumption.
Thanks.
--
Dodji
next prev parent reply other threads:[~2013-01-09 15:31 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-08 13:58 Dodji Seketeli
2013-01-08 16:44 ` Gabriel Dos Reis
2013-01-09 15:31 ` Dodji Seketeli [this message]
2013-01-09 16:14 ` Gabriel Dos Reis
2013-01-10 15:22 ` Dodji Seketeli
2013-01-10 16:02 ` Gabriel Dos Reis
2013-01-11 10:41 ` Dodji Seketeli
2013-01-11 10:47 ` Jakub Jelinek
2013-01-11 11:31 ` Dodji Seketeli
2013-01-10 16:11 ` Gabriel Dos Reis
2013-01-10 17:01 ` Jason Merrill
2013-01-11 10:38 ` Dodji Seketeli
2013-01-11 14:53 ` Jason Merrill
2013-01-11 16:33 ` Dodji Seketeli
2013-01-14 14:09 ` Jason Merrill
2013-01-08 19:53 ` Jason Merrill
2013-01-09 15:03 ` Dodji Seketeli
2013-01-09 16:17 ` 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=87hamqtlum.fsf@redhat.com \
--to=dodji@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=gdr@integrable-solutions.net \
--cc=jason@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).