22 Oct
2006
22 Oct
'06
1:31 p.m.
Le samedi 21 octobre 2006 à 16:06 +0200, Guillaume Melquiond a écrit :
But thanks to your testcase, I now understand where the confusion comes from. There must be a bug somewhere, as the width of the single precision interval should never have been zero. For now, I haven't found anything obvious. I'm not even sure whether the bug is in the interval library or not. I will have to investigate.
Following up on myself. There is a bug [*] in GCC 3.4 and later such that the compiler generates wrong code when converting from interval<double> to interval<float>. So, if your compiler is GCC, the behavior you observe is not surprising (although completely wrong). Best regards, Guillaume [*] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21032