This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ Patch / RFC] PR 53211
- From: Jason Merrill <jason at redhat dot com>
- To: Paolo Carlini <paolo dot carlini at oracle dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 18 Jun 2013 10:15:51 -0400
- Subject: Re: [C++ Patch / RFC] PR 53211
- References: <51BF6CA3 dot 1050200 at oracle dot com> <51BF71DF dot 6060601 at redhat dot com> <51BFA813 dot 9060100 at oracle dot com>
On 06/17/2013 08:21 PM, Paolo Carlini wrote:
I see... There is a little difficulty in that 56794 involves a non-type
variadic parameter and in that case type_dependent_expression_p returns
false. If I use value_dependent_expression_p things work, but I'm not
sure it's 100% correct.
I don't think we need to consider whether the initializer is dependent
here; if the array has no length and has an initializer, it must be that
we couldn't determine its length in cp_complete_array_type because it is
dependent.
Eventually, we'll have to decide where we want to commit this: 56794 is
fixed in 4.7 and 4.8 too, but it's true that the issue with the specific
testcase attached by Jon isn't a regression.
I think apply it to 4.8 as well.
Jason