This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/30416] SIGSEGV in valarray::cshift(n) on empty array



------- Comment #14 from paolo at gcc dot gnu dot org  2007-01-12 11:09 -------
Subject: Bug 30416

Author: paolo
Date: Fri Jan 12 11:09:26 2007
New Revision: 120720

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120720
Log:
2007-01-12  Paolo Carlini  <pcarlini@suse.de>

        PR libstdc++/30416
        * include/std/valarray (valarray<>::shift, valarray<>::cshift):
        Do not segfault when |n| > size.
        * testsuite/26_numerics/valarray/30416.cc: New.

Added:
    trunk/libstdc++-v3/testsuite/26_numerics/valarray/30416.cc
Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/include/std/valarray


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30416


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