Re: [C++] trailing array hack

2016-12-05 Thread Martin Sebor
On 12/05/2016 11:09 AM, Nathan Sidwell wrote: Jason, Martin. looking at pr78635, I find it related to Martin's patch of 15-12-2015 dealing with flexible array members. Martin's patch makes the following ill-formed: struct Base {int m; char ary[];}; // ends in flexible array - OK struct

[C++] trailing array hack

2016-12-05 Thread Nathan Sidwell
Jason, Martin. looking at pr78635, I find it related to Martin's patch of 15-12-2015 dealing with flexible array members. Martin's patch makes the following ill-formed: struct Base {int m; char ary[];}; // ends in flexible array - OK struct Derived : Base {}; // base ends in flexible array