FYI, LDC has this div bug too on x86_64 GNU/Linux

David Nadlinger code at klickverbot.at
Thu Aug 13 14:53:22 UTC 2020


On 13 Aug 2020, at 8:40, mw via digitalmars-d-ldc wrote:
> div bug: long -5000 / size_t 2 = 9223372036854773308
>
> https://forum.dlang.org/thread/rdrqedmbknwrppbfixll@forum.dlang.org

Just FYI, the place to discuss language issues like this the main D 
forum – LDC will always match DMD and the language specification. (The 
situation would be different if it was a problem in back-end code 
generation, but in this case, things are working "as intended" in terms 
of the compiler codegen.)

   — David


More information about the digitalmars-d-ldc mailing list