August 20, 2013 [Issue 10860] New: [CTFE] Static assert real.min_normal*real.max > 2 is false in some context | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=10860 Summary: [CTFE] Static assert real.min_normal*real.max > 2 is false in some context Product: D Version: unspecified Platform: All OS/Version: All Status: NEW Keywords: CTFE Severity: normal Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: maxim@maxim-fomin.ru --- Comment #0 from Maxim Fomin <maxim@maxim-fomin.ru> 2013-08-20 11:30:29 PDT --- Considering the code from https://github.com/D-Programming-Language/phobos/blob/master/std/math.d#L2894 void main() { static assert(real.min_normal*real.max > 2); } This runs fine, but when dmd is executed under valgrind expression real.min_normal*real.max is evaluated to -nanL and assertion fails. It may happen due to different FPU environment, some bug in ctfe, flawed assertion, or combination of thereof. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
August 21, 2013 [Issue 10860] [CTFE] Static assert real.min_normal*real.max > 2 is false in some context | ||||
---|---|---|---|---|
| ||||
Posted in reply to Maxim Fomin | http://d.puremagic.com/issues/show_bug.cgi?id=10860 Don <clugdbug@yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #1 from Don <clugdbug@yahoo.com.au> 2013-08-21 00:27:30 PDT --- This is a valgrind problem. Valgrind doesn't implement 80-bit floating point numbers, unfortunately. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation