------- Additional Comments From joseph at codesourcery dot com  2005-03-10 
15:59 -------
Subject: Re:  New: Rejects valid C99 for the C++ front-end

On Thu, 10 Mar 2005, pinskia at gcc dot gnu dot org wrote:

> The following code is rejects (even though it is valid C99 and Mark said we 
> should have the C++ front-
> end accept it also):
> typedef struct {
>  unsigned char dir;
>  int data[];
> } AiDefaultRailBlock;
> static const AiDefaultRailBlock _raildata_ai_0 = { 1,  { 0,  4 }  };

Initialization of flexible array members is not valid C99; it is a GNU 
extension.



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20407

Reply via email to