https://issues.dlang.org/show_bug.cgi?id=17160

--- Comment #1 from Sophie <[email protected]> ---
This issue seems not to occur when using `enum Enum: real` instead of double.

>From IRC:

<skl> hmm it does a byte comparison but they differ, one is 00D0CC... the other
is CDCCCCCC...
<adam_d_ruppe> i am guessing that the enum treats it more like a literal than
the variable does so it gets imprecise passed to functions
<skl> it stores the literial enum value as a real 80-bit floating point number
<skl> but it looks like it passes a double into the function

--

Reply via email to