Displaying 2 results from an estimated 2 matches for "anypad".
Did you mean:
keypad
2008 Mar 12
0
[LLVMdev] Language lawyer question
...f language correctness,
>
> Why?
My gut. I listen to my gut. More seriously, C99 section 6.2.6.1
paragraph 6 has:
> 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
> 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 co...
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