Steve Bennett <[EMAIL PROTECTED]> wrote:

> Bad news!
>
> sizeof(test1) is 12
> offsetof(test1, more) is 8
> offsetof(test1, dummy) is 10
>
> I suppose this is the bit you are referring to:
> >   the  size
> >   of  the  structure  shall be equal to the offset of the last
> >   element of an otherwise identical  structure  that  replaces
> >   the  flexible  array  member  with  an  array of unspecified
> >   length.97)
>
> That 'of unspecified length' might well account for this behaviour.

Let me discuss this with a friend tomorrow....
Thank you for the tests.

Jörg

-- 
 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
       [EMAIL PROTECTED]                (uni)  
       [EMAIL PROTECTED]     (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily

Reply via email to