Liste des Groupes | Revenir à theory |
Richard Heathfield <rjh@cpax.org.uk> writes:Indeed, although it's normally quite easy to kick them into conforming mode if such a mode exists.On 09/05/2025 00:53, olcott wrote:[...]On 5/8/2025 6:45 PM, Keith Thompson wrote:Meh. Most C compilers, certainly including gcc, clang, and>I have no particular problem with that, but your failure to correctAs I already proved Microsoft reported no such errors.
a number of C errors in your code is odd.
That's tantamount to a claim of a bug in your compiler. Conforming C
compilers are /required/ to report syntax errors.
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 aIt's been a very long time since I used a Microsoft compiler, but -W4 is worth a shot.
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 defaultYes, which is fine as long as the compiler X user restricts himself to compiler X, but which can embarrass him if he starts making general claims about the language itself.
modes are lax in different ways, so an error that compiler X ignores by
default might become fatal when you use compiler Y.
Les messages affichés proviennent d'usenet.