stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Created: (STDCXX-318) SIGFPE in std::valarray::cshift() on empty array
Date Tue, 09 Jan 2007 21:31:27 GMT
SIGFPE in std::valarray::cshift() on empty array
------------------------------------------------

                 Key: STDCXX-318
                 URL: https://issues.apache.org/jira/browse/STDCXX-318
             Project: C++ Standard Library
          Issue Type: Bug
          Components: 26. Numerics
    Affects Versions: 4.1.2, 4.1.3
         Environment: all
            Reporter: Martin Sebor
         Assigned To: Martin Sebor
             Fix For: 4.2


The program below abends with SIGFPE due to division by zero:

$ cat t.cpp && nice gmake t && ./t
#include <cassert>
#include <valarray>

int main ()
{
    const std::valarray<int> a;

    a.cshift (1);
} 
aCC -c -I/nfs/devco/sebor/dev/stdlib/include/ansi -I/usr/include  -D_RWSTDDEBUG   -mt -D_RWSTD_USE_CONFIG
-I/nfs/devco/sebor/dev/stdlib/include -I/build/sebor/aCC-3.70-15S/include -I/nfs/devco/sebor/dev/stdlib/examples/include
 -Aa +nostl  -g +d  +DD64 +w +W392 +W655 +W684 +W818 +W819 +W849   t.cpp
aCC t.o -o t -Aa +nostl -Wl,+s -Wl,+vnocompatwarnings   -mt +DD64 -L/build/sebor/aCC-3.70-15S/lib
-lstd15S   -lm 
Floating point exception (core dumped)


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message