[Bug libstdc++/30416] SIGSEGV in valarray::cshift(n) on empty array
paolo at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Jan 12 14:56:00 GMT 2007
------- Comment #17 from paolo at gcc dot gnu dot org 2007-01-12 14:56 -------
Subject: Bug 30416
Author: paolo
Date: Fri Jan 12 14:56:29 2007
New Revision: 120725
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=120725
Log:
2007-01-12 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/30416 (continued)
* include/std/std_valarray.h (valarray<>::shift, valarray<>::cshift):
Allways return the same variable, thus facilitating NRVO.
2007-01-12 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/30416
* include/std/std_valarray.h (valarray<>::shift, valarray<>::cshift):
Do not segfault when |n| > size.
* testsuite/26_numerics/valarray/30416.cc: New.
Added:
branches/gcc-4_2-branch/libstdc++-v3/testsuite/26_numerics/valarray/30416.cc
Modified:
branches/gcc-4_2-branch/libstdc++-v3/ChangeLog
branches/gcc-4_2-branch/libstdc++-v3/include/std/std_valarray.h
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30416
More information about the Gcc-bugs
mailing list