A strange div bug on Linux x86_64, (both dmd & ldc2): long -5000 / size_t 2 = 9223372036854773308

mw mingwu at gmail.com
Fri Aug 14 00:01:49 UTC 2020


On Thursday, 13 August 2020 at 23:50:08 UTC, Walter Bright wrote:
> On 8/13/2020 4:33 PM, James Blachly wrote:
> Warnings are inherently problematic, as the poor user is always 
> faced with "is this a real problem or not?" I've been very 
> resistant to adding warnings in the past because it balkanizes 
> the language into dialects.

It can be default-to-off warnings.

So for users who really care, or when their program run into 
trouble, they can turn the compiler option on explicitly to find 
the potential breaks.

Personally, I always turn on compiler warning to its max level.





More information about the Digitalmars-d mailing list