This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/30416] SIGSEGV in valarray::cshift(n) on empty array
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jan 2007 18:56:46 -0000
- Subject: [Bug libstdc++/30416] SIGSEGV in valarray::cshift(n) on empty array
- References: <bug-30416-1186@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #10 from pcarlini at suse dot de 2007-01-10 18:56 -------
(In reply to comment #8)
> Paolo -- there is what the standard says, and what we can or should implement.
> I believe there is a genuine bug in the standard here, no matter how
> easy it is to avoid the segmentation fault. This specific corner case is
> most likely run into in testsuites; we better have the standard be
> clear and let the testsuite implement what the standard says.
Gaby, right now I'm *much* more interested in the general issue which I stated
at the end of my previous message: for v3, the corner case pointed out by
Martin seems just a special case of the much more general issue with size != 0
and { n : |n| > size }. AFAICS, we are not doing the right thing in all such
cases too, that is we are segfaulting where we should not. Do you agree?
--
pcarlini at suse dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gdr at integrable-solutions
| |dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30416