Re: PR24138 and flexible arrays in C++

2005-11-10 Thread Joe Buck
On Thu, Nov 10, 2005 at 11:35:20PM +0100, Gabriel Dos Reis wrote: > Mark Mitchell <[EMAIL PROTECTED]> writes: > > | Ideally, I think we would support it; I'm just not sure exactly what > | restrictions, if any, should apply to the flexible array data member. > | For example, perhaps the type of th

Re: PR24138 and flexible arrays in C++

2005-11-10 Thread Gabriel Dos Reis
Mark Mitchell <[EMAIL PROTECTED]> writes: | Ideally, I think we would support it; I'm just not sure exactly what | restrictions, if any, should apply to the flexible array data member. | For example, perhaps the type of the elements should be one that does | not require construction. Perhaps that

Re: PR24138 and flexible arrays in C++

2005-11-10 Thread Mark Mitchell
Aldy Hernandez wrote: > Hi folks. > > The code below is ICE-ing in C++: > > typedef struct { > unsigned char dir; > int data[]; > } AiDefaultRailBlock; > static const AiDefaultRailBlock _raildata_ai_0 = { 1, { 0, 4 } }; > > According to our docs, this is valid under flexible arrays: > > ht