[Bug c/36987] Truncated C struct data initializer with variable size trailing array

howard dot thomson at dial dot pipex dot com gcc-bugzilla@gcc.gnu.org
Thu Jul 31 12:51:00 GMT 2008



------- Comment #1 from howard dot thomson at dial dot pipex dot com  2008-07-31 12:50 -------
Created an attachment (id=15985)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15985&action=view)
test for unexpected C struct field alteration

Due to the variable sized component of the struct initializer not being
emitted, assignment to the single element of that initializer results in the
following data structure being unexpectedly altered.

gcc is 4.0.1 (Apple Computer, Inc. build 5449) on an X86_64 OpenSUSE 10.3
system.


-- 


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



More information about the Gcc-bugs mailing list