Sujet : Re: Struct Error
De : learningcpp1 (at) *nospam* gmail.com (m137)
Groupes : comp.lang.cDate : 23. Jan 2025, 04:49:07
Autres entêtes
Organisation : novaBBS
Message-ID : <9e46bce27ddcc084a5291a2bae723be9@www.novabbs.com>
References : 1 2
User-Agent : Rocksolid Light
On Thu, 23 Jan 2025 1:05:25 +0000, James Kuyper wrote:
I have many draft versions of the C standard. n2912.pdf, dated
2022-06-08, says in 6.7.2.1.p3 about struct types that "... the type is
incomplete144) until immediately after the closing brace of the list
defining the content, and complete thereafter."
>
Therefore, struct scenet is not a complete type until the closing brace
of it's declaration.
>
However, that sentence disappeared in n3047.pdf, dated 2022-08-04. Can
anyone tell me why it was removed? With it gone, I'm not sure it is
still considered an incomplete type.
It seems to have been moved to N3047 6.2.5(25): "[...] A structure or
union type of unknown content (as described in 6.7.2.3) is an incomplete
type. [...]" (see here:
https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3047.pdf#page=57).
--