Floats in std_cmath.h
Jean-Marie Aubry
jihem@math.ucdavis.edu
Tue Aug 24 17:19:00 GMT 1999
Hello everybody,
With gcc version 2.95.1 and libstdc++-2.90.6 on an i686-pc-linux-gnu,
the following code:
#include <bits/std_cmath.h>
int main() {
sin(static_cast<float>(0));
return 0;
}
compiles but the executable generates a Segmentation Fault. This happens
with any math function in place of the sin. With double instead of float
it runs fine. What's going on there ?
--
JiheM
More information about the Libstdc++
mailing list