This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Floats in std_cmath.h


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]