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: "gdr at integrable-solutions dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jan 2007 23:27:47 -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 #12 from gdr at integrable-solutions dot net 2007-01-10 23:27 -------
Subject: Re: SIGSEGV in valarray::cshift(n) on empty array
"pcarlini at suse dot de" <gcc-bugzilla@gcc.gnu.org> writes:
| 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.
Yes, it is interesting to note that a specific request to make the
standard much clearer on the semantics is curiously construed as an
argument for arguing that the standard says the beahviour is undefined.
No wonder.
-- Gaby
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30416