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>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 17 Jun 2013 16:30:23 -0400
- Subject: Re: [C++ Patch / RFC] PR 53211
- References: <51BF6CA3 dot 1050200 at oracle dot com>
On 06/17/2013 04:08 PM, Paolo Carlini wrote:
+ if (TREE_CODE (TREE_TYPE (*tp)) == ARRAY_TYPE
+ && !TYPE_DOMAIN (TREE_TYPE (*tp))
+ && DECL_INITIAL (*tp)
+ && type_dependent_expression_p (DECL_INITIAL (*tp)))
+ return *tp;
I think this approach makes sense, but it should go in
type_dependent_expression_p rather than instantiation_dependent_r.
And please revert my fix for 56794, since this should fix one as well.
Jason