Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #388641

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 2024-10-13 21:55 -0700
Organization A noiseless patient Spider
Message-ID <86h69fxozf.fsf@linuxsc.com> (permalink)
References <20241006192337.76@kylheku.com> <ve19g1$1orao$1@dont-email.me>

Show all headers | View raw


Nick Bowler <nbowler@draconx.ca> writes:

> On Mon, 7 Oct 2024 02:32:13 -0000 (UTC), Kaz Kylheku wrote:
>
>> I can't think of a reasonable interpretation of the original
>> wording which would allow the size to be other than the offset
>> of the array, when the array is of a character type.
>>
>> The current wording clearly does allow the size to go beyond
>> the offset in that case.
>
> The original wording includes no requirement that the offset of
> the replacement array used for the size calculation has any
> relationship whatsoever with the offset of the flexible array
> member.

The original wording is moot because it was superseded by the TC.
The purpose of a TC is not to change the language but to clarify
what semantics are intended.  The point of the revised wording in
the TC is to say "this is what the earlier wording meant".

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


Thread

sizeof struct with flexible array: when did it change? Kaz Kylheku <643-408-1753@kylheku.com> - 2024-10-07 02:32 +0000
  Re: sizeof struct with flexible array: when did it change? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-10-06 20:43 -0700
  Re: sizeof struct with flexible array: when did it change? Nick Bowler <nbowler@draconx.ca> - 2024-10-07 18:32 +0000
    Re: sizeof struct with flexible array: when did it change? Kaz Kylheku <643-408-1753@kylheku.com> - 2024-10-07 23:42 +0000
      Re: sizeof struct with flexible array: when did it change? Jeremy Brubaker <jbrubake.362@orionarts.invalid> - 2024-10-09 12:55 +0000
        Re: sizeof struct with flexible array: when did it change? scott@slp53.sl.home (Scott Lurndal) - 2024-10-09 15:06 +0000
    Re: sizeof struct with flexible array: when did it change? Tim Rentsch <tr.17687@z991.linuxsc.com> - 2024-10-13 21:55 -0700

csiph-web