[LLVMbugs] [Bug 20829] Initialization of union type

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Sep 3 16:30:32 PDT 2014


Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
                 CC|                            |richard-llvm at metafoo.co.uk
         Resolution|---                         |INVALID

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Neither of the quoted portions of the C standard seem relevant; there are no
members corresponding to padding, unnamed or otherwise.

The relevant section is: "When a value is stored in an object of structure or union type,
including in a member object, the bytes of the object representation that
correspond to any padding bytes take unspecified values." "When a value is stored in a member of an object of union type, the
bytes of the object representation that do not correspond to that member but do
correspond to other members take unspecified values."

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140903/800e1f2b/attachment.html>

More information about the llvm-bugs mailing list