Division by zero

David Nadlinger via Digitalmars-d digitalmars-d at puremagic.com
Fri Oct 3 05:54:36 PDT 2014


On Friday, 3 October 2014 at 12:31:54 UTC, Marc Schütz wrote:
> test_int() and test_long() return ...nothing!

Note that they just return whatever is in eax/rax at that time, 
just like DMD returns a garbage value.

The fact that integer division by zero is undefined behavior on 
the LLVM side but defined in the D spec may well be an LDC bug, 
though.

David


More information about the Digitalmars-d mailing list