<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 31, 2019 at 12:00 PM Hans Åberg <<a href="mailto:haberg-1@telia.com">haberg-1@telia.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
> On 31 Oct 2019, at 18:40, David Blaikie <<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>> wrote:<br>
> <br>
>> Right, but that is something one would avoid when computing arithmetical results.<br>
> <br>
> One would try to, yes - but that's sort of what the whole discussion is resolving around: Is the code correct? I don't know. I wouldn't assume it is (I'm not assuming it isn't either) - but without a reduced test case that gets to the root of the difference in behavior, we don't know if the code is correct.<br>
<br>
Nor whether it is a compiler bug.<br></blockquote><div><br>Indeed - but you can imagine that, on average (just due to there being way more code compiled by the compiler, than the code of the compiler itself) the bug is in external code, not the compiler. Such that it's not practical for the compiler developers to do all the leg work of investigating 3rd party code bugs to determine if it's a bug in the compiler. It doesn't scale/we wouldn't have any time to work on the compiler & most of the time we'd be finding user bugs, not compiler bugs.<br><br>Apologies for the snark in the title of this article, but it covers some of the ideas: <a href="https://blog.codinghorror.com/the-first-rule-of-programming-its-always-your-fault/">https://blog.codinghorror.com/the-first-rule-of-programming-its-always-your-fault/</a> & other articles around discuss similar ideas.<br><br>Yes, there are compiler bugs - but you've sort of got to continue under the assumption that that's not the issue until you've got some fairly compelling evidence of one (very narrow test case where you can look at all the code & visually inspect/discuss/reason about its standards conformance - currently "all of GMP" is too big to apply that level of scrutiny).<br><br>- Dave<br> </div></div></div>