OK.
On Wed, Mar 21, 2018 at 5:52 PM, Alexandre Oliva wrote:
> On Mar 20, 2018, Jason Merrill wrote:
>
>>> -permerror (input_location,
>>> - "parenthesized initializer in array new");
>>> +error_at (input_location,
>>> +
On Mar 20, 2018, Jason Merrill wrote:
>> -permerror (input_location,
>> - "parenthesized initializer in array new");
>> +error_at (input_location,
>> + "parenthesized initializer in array new");
> I suspect you'll n
he permerror into a hard error than improve
>> support for a deprecated extension.
>
> Like this?
>
> [PR c++/84729] convert new init to array elt type
>
> A parenthesized initializer was only accepted when new()ing an array in
> permissive mode. We were not careful, howeve
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.
Like this?
On Sat, Mar 10, 2018 at 6:57 AM, Alexandre Oliva 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 turnin
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