This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/16566] [3.4/3.5 Regression] ICE with flexible arrays
- From: "jsm at polyomino dot org dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Aug 2004 11:23:40 -0000
- Subject: [Bug c/16566] [3.4/3.5 Regression] ICE with flexible arrays
- References: <20040715141619.16566.ppelissi@caramail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From jsm at polyomino dot org dot uk 2004-08-09 11:23 -------
Subject: Re: [3.4/3.5 Regression] ICE with flexible arrays
Note that this already fails with 3.2.3 if you use -std=c99 -pedantic.
Also note that though the code should be accepted, it has undefined
behavior if executed; a non-lvalue with structure with flexible array
member type is a value that does not refer to an object (other than a
temporary that disappears at the next sequence point), so members of the
flexible array can't be accessed without undefined behavior.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16566