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 19:19:00 -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 #11 from pcarlini at suse dot de 2007-01-10 19:18 -------
Forgot: assuming we imagine the standard clarified per your proposal on LWG (or
read as such for all practical matters), I understand that not segfaulting when
size == 0 would be a conforming behavior. Then, in v3, we could change the code
to *always* avoid segfaulting, that is, for any n and any size, in a consistent
way. I vounteer to implement that behavior.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30416