digitalmars.D.bugs - [Issue 10860] New: [CTFE] Static assert real.min_normal*real.max > 2 is false in some context
- d-bugmail puremagic.com (28/28) Aug 20 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10860
- d-bugmail puremagic.com (12/12) Aug 21 2013 http://d.puremagic.com/issues/show_bug.cgi?id=10860
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 --- 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: -------
Aug 20 2013
http://d.puremagic.com/issues/show_bug.cgi?id=10860 Don <clugdbug yahoo.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID 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: -------
Aug 21 2013