Displaying 2 results from an estimated 2 matches for "copyany".
2008 Mar 12
0
[LLVMdev] Language lawyer question
...n 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
> anypadding bytes take
> unspeciļ¬ed values.42)
and the footnote says:
> 42) Thus, for example, structure assignment need not copyany padding
> bits.
I think that covers this case for at least C99. The test case should
not assume the padding bytes are copied.
If you assume "need not copy" semantics, the test case doesn't have
much value for correctness. If you want LLVM to assume an
implementation-speci...
2008 Mar 12
3
[LLVMdev] Language lawyer question
On Mar 11, 2008, at 9:47 PM, Patrick Meredith wrote:
> I thought pointer referencing like this was only valid for arrays.
> I could be wrong, but it might be that looping over the struct like
> that
> is invalid, making it undefined behavior (and then the hole doesn't
> matter because there is no valid way to access it). That said, I've
> definitely
> seen