On Tuesday, January 19, 2021 at 7:18:55 AM UTC+11, gah4 wrote:
> On Sunday, January 17, 2021 at 1:53:12 PM UTC-8, Harald Anlauf wrote:
>
> (snip)
> > Thus only a warning is issued, not an error, and the result changes!
.
> Unless the standard specifically disallows it, non-standard extensions
> are allowed.
.
This is not an "extension". It is plain and simple a compiler error,
and completely wrong results are produced.
.
> It is even allowed to do what you thought you wanted to do,
> when you wrote something else.
.
Nonsense.
.
> It is, at least, nicely telling you that your code is non-standard, but also nicely
> letting it go, anyway.
>
> When it took hours or days to get the results back from a run, it was nice
> of compilers to try to fix mistakes, at least enough to compile. That isn't
> needed so much now, though.
.
Correcting compilers told you what the error was, and what it was doing
with it.
Compilers still need to diagnose errors, at the very least.