Sujet : Re: Baby X is bor nagain
De : jameskuyper (at) *nospam* alumni.caltech.edu (James Kuyper)
Groupes : comp.lang.cDate : 03. Jul 2024, 23:12:47
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v64esg$2c2c0$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
User-Agent : Mozilla Thunderbird
On 6/29/24 20:36, Kaz Kylheku wrote:
...
Situations which are constraint or syntax violations in ISO C, where the
compiler is not providing a useful extensions, should be diagnosed in
such a way that translation does not succeed.
>
ISO C doesn't require that, possibly because it would forbid extensions.
(Extensions that are non-conforming, but only in the regard that
translation doesn't fail.)
You're right, ISO C doesn't require that. ISO C only requires a
conforming implementation of C to fail to translate a program if that
program contains a correctly formatted #error directive that survives
the conditional compilation phase. Therefore, extensions that don't
result in a failed translation under those circumstances are fully
conforming.
The standard talks about conforming extensions (4p6); it says nothing
about non-conforming ones, because there's so little that can usefully
said about them.