Sujet : Re: Incorrect requirements --- Computing the mapping from the input to HHH(DD)
De : Keith.S.Thompson+u (at) *nospam* gmail.com (Keith Thompson)
Groupes : comp.theoryDate : 09. May 2025, 06:18:16
Autres entêtes
Organisation : None to speak of
Message-ID : <87jz6qbbvr.fsf@nosuchdomain.example.com>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
User-Agent : Gnus/5.13 (Gnus v5.13)
Richard Heathfield <
rjh@cpax.org.uk> writes:
On 09/05/2025 00:53, olcott wrote:
On 5/8/2025 6:45 PM, Keith Thompson wrote:
[...]
I have no particular problem with that, but your failure to correct
a number of C errors in your code is odd.
As I already proved Microsoft reported no such errors.
>
That's tantamount to a claim of a bug in your compiler. Conforming C
compilers are /required/ to report syntax errors.
Meh. Most C compilers, certainly including gcc, clang, and
Microsoft's C compiler, are not conforming by default. In fact,
I don't know of any that are.
I consider this unfortunate, but it means that if you want a
conforming C compiler, you need to use apply additional options
("-std=cNN -pedantic" for gcc and clang, and something else for
Microsoft's compiler).
The problem, of course, is that different C compilers in their default
modes are lax in different ways, so an error that compiler X ignores by
default might become fatal when you use compiler Y.
[...]
-- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.comvoid Void(void) { Void(); } /* The recursive call of the void */