This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Floats in std_cmath.h
- To: libstdc++ <libstdc++@sourceware.cygnus.com>
- Subject: Floats in std_cmath.h
- From: Jean-Marie Aubry <jihem@math.ucdavis.edu>
- Date: Tue, 24 Aug 1999 17:19:16 -0700
- Organization: U.C. Davis (not speaking for)
- Reply-To: jihem@ucdavis.edu
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