www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - FYI, LDC has this div bug too on x86_64 GNU/Linux

reply mw <mingwu gmail.com> writes:
div bug: long -5000 / size_t 2 = 9223372036854773308

https://forum.dlang.org/thread/rdrqedmbknwrppbfixll forum.dlang.org

https://issues.dlang.org/show_bug.cgi?id=21151
Aug 13 2020
parent "David Nadlinger" <code klickverbot.at> writes:
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
Aug 13 2020