This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/20407] Rejects valid C99 for the C++ front-end
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Mar 2005 15:59:40 -0000
- Subject: [Bug c++/20407] Rejects valid C99 for the C++ front-end
- References: <20050310151157.20407.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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