Sujet : Re: Top 10 most common hard skills listed on resumes...
De : jameskuyper (at) *nospam* alumni.caltech.edu (James Kuyper)
Groupes : comp.lang.cDate : 29. Aug 2024, 19:26:02
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vaqefq$2arg$2@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
User-Agent : Mozilla Thunderbird
On 8/29/24 12:06, Ben Bacarisse wrote:
...
I can't see what it is you object to in what I wrote. I don't disagree
with anything you are saying (the "correct result" being to reject a
program that has, syntactically, the wrong thing on the left hand side).
No - the only requirement is that a diagnostic be produced. A fully
conforming implementation of C is allowed to accept such code and then
generate an executable; if you choose to execute the executable, the
behavior is undefined.
The only construct for which rejection is mandatory is a #error
directive that survives conditional compilation. Note that a #error
directive that contains or is a syntax error or a constraint violation
would invalidate that requirement, allowing the program to be accepted.