This is the mail archive of the libstdc++-prs@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]

libstdc++/4: Floats in std_cmath.h



>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:

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