libstdc++/4: Floats in std_cmath.h
jihem@math.ucdavis.edu
jihem@math.ucdavis.edu
Wed Aug 25 13:27:00 GMT 1999
>Number: 4
>Category: libstdc++
>Synopsis: Floats in std_cmath.h
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Aug 25 13:27:09 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator: Jean-Marie Aubry
>Release: gcc version 2.95.1 and libstdc++-2.90.6
>Organization:
>Environment:
i686-pc-linux-gnu
>Description:
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
>How-To-Repeat:
see above
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Libstdc++-prs
mailing list