Groups | Search | Server Info | Keyboard shortcuts | Login | Register


Groups > comp.lang.c > #392376

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

From Tim Rentsch <tr.17687@z991.linuxsc.com>
Newsgroups comp.lang.c
Subject Re: sizeof struct with flexible array: when did it change?
Date 2025-04-11 04:53 -0700
Organization A noiseless patient Spider
Message-ID <86bjt2c3sj.fsf@linuxsc.com> (permalink)
References <20241006192337.76@kylheku.com> <20250410200202.357@kylheku.com>

Show all headers | View raw


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?

Back to comp.lang.c | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Re: sizeof struct with flexible array: when did it change? Kaz Kylheku <643-408-1753@kylheku.com> - 2025-04-11 03:04 +0000
  Re: sizeof struct with flexible array: when did it change? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2025-04-11 04:53 -0700
    Re: sizeof struct with flexible array: when did it change? Keith Thompson <Keith.S.Thompson+u@gmail.com> - 2025-04-11 12:42 -0700
      Re: sizeof struct with flexible array: when did it change? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2025-04-11 13:34 -0700

csiph-web