This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/36987] Truncated C struct data initializer with variable size trailing array
- From: "howard dot thomson at dial dot pipex dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jul 2008 12:50:09 -0000
- Subject: [Bug c/36987] Truncated C struct data initializer with variable size trailing array
- References: <bug-36987-16539@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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