D Compilers Disprove Fermat’s Last Theorem

user1234 user1234 at 12.de
Mon May 17 08:24:22 UTC 2021


On Monday, 17 May 2021 at 07:53:56 UTC, Jack Applegame wrote:
> I accidentally found an old funny article about the undefined 
> behavior in C / C++:
> [C Compilers Disprove Fermat’s Last 
> Theorem](https://blog.regehr.org/archives/140)
>
> After a little testing, I can confidently state that D 
> compilers disprove Fermat’s Last Theorem too!
> ...
> Fermat's Last Theorem has been disproved.
> ```
> Check it out on [run.dlang.io](https://run.dlang.io/is/TrO2aH)

intersting but dmd -O does not disprove.
Alos it's not about D, it's about backend optimizations, as 
expalined in the article.


More information about the Digitalmars-d mailing list