[Bug c/16566] [3.4/3.5 Regression] ICE with flexible arrays

jsm at polyomino dot org dot uk gcc-bugzilla@gcc.gnu.org
Mon Aug 9 11:23:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list