This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PR c++/84729] convert new init to array elt type
- From: Jason Merrill <jason at redhat dot com>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 20 Mar 2018 14:11:03 -0400
- Subject: Re: [PR c++/84729] convert new init to array elt type
- References: <or6064b0so.fsf@lxoliva.fsfla.org>
On Sat, Mar 10, 2018 at 6:57 AM, Alexandre Oliva <aoliva@redhat.com> wrote:
> A parenthesized initializer is only accepted when new()ing an array in
> permissive mode. We were not careful, however, to convert the
> TREE_LIST initializer to the array element type in this extension.
> This patch fixes it: after turning the TREE_LIST initializer to a
> compound_expr, we convert it to the base type.
I think I'd rather turn the permerror into a hard error than improve
support for a deprecated extension.
Jason