Re: sizeof struct with flexible array: when did it change?

Liste des GroupesRevenir à cl c  
Sujet : Re: sizeof struct with flexible array: when did it change?
De : tr.17687 (at) *nospam* z991.linuxsc.com (Tim Rentsch)
Groupes : comp.lang.c
Date : 11. Apr 2025, 12:53:48
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <86bjt2c3sj.fsf@linuxsc.com>
References : 1 2
User-Agent : Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Kaz Kylheku <643-408-1753@kylheku.com> writes:

On 2024-10-07, Kaz Kylheku <643-408-1753@kylheku.com> wrote:
>
C99 said that the size of a structure that ends in a flexible array
member is the same as the offset of that flexible member in a
similar structure in which the array has some unspecified size.
>
The latest draft says that the size is calculated as if the flexible
array member were omitted, except that there may be more padding than
the omission would imply.
>
I just noticed that a draft version of C99 has exactly this
same wording!

I am skeptical.  Which document is that exactly?

Date Sujet#  Auteur
7 Oct 24 * sizeof struct with flexible array: when did it change?10Kaz Kylheku
7 Oct 24 +- Re: sizeof struct with flexible array: when did it change?1Tim Rentsch
7 Oct 24 +* Re: sizeof struct with flexible array: when did it change?4Nick Bowler
8 Oct 24 i+* Re: sizeof struct with flexible array: when did it change?2Kaz Kylheku
9 Oct 24 ii`- Re: sizeof struct with flexible array: when did it change?1Jeremy Brubaker
14 Oct 24 i`- Re: sizeof struct with flexible array: when did it change?1Tim Rentsch
11 Apr 25 `* Re: sizeof struct with flexible array: when did it change?4Kaz Kylheku
11 Apr 25  `* Re: sizeof struct with flexible array: when did it change?3Tim Rentsch
11 Apr 25   `* Re: sizeof struct with flexible array: when did it change?2Keith Thompson
11 Apr 25    `- Re: sizeof struct with flexible array: when did it change?1Tim Rentsch

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal