[Issue 6586] feqrel for const values too

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 8 13:24:04 PDT 2014


https://d.puremagic.com/issues/show_bug.cgi?id=6586


hsteoh at quickfur.ath.cx changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hsteoh at quickfur.ath.cx


--- Comment #3 from hsteoh at quickfur.ath.cx 2014-04-08 13:23:49 PDT ---
Tested on git HEAD: the original code now compiles, although I did find a
different related failing case:

======Code:======
import std.math, std.stdio;
void main() {
        const(double) a=1.0, b=2.0;
        writeln(feqrel(a, b));
}
======Compile:======
/usr/src/d/phobos/std/math.d(5394): Error: cannot modify const expression diff
test.d(4): Error: template instance std.math.feqrel!(const(double)) error
instantiating

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list