public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/59391] std::sort will go out of std::vector bounds and crash
[not found] <bug-59391-4@http.gcc.gnu.org/bugzilla/>
@ 2013-12-04 22:31 ` awwafa at gmail dot com
2013-12-04 22:58 ` pinskia at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 5+ messages in thread
From: awwafa at gmail dot com @ 2013-12-04 22:31 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59391
--- Comment #1 from Ahmed Wafa <awwafa at gmail dot com> ---
// The following is shortest array that will reproduce that problem
const int int_array[] = {1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2};
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/59391] std::sort will go out of std::vector bounds and crash
[not found] <bug-59391-4@http.gcc.gnu.org/bugzilla/>
2013-12-04 22:31 ` [Bug libstdc++/59391] std::sort will go out of std::vector bounds and crash awwafa at gmail dot com
@ 2013-12-04 22:58 ` pinskia at gcc dot gnu.org
2013-12-09 5:51 ` awwafa at gmail dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu.org @ 2013-12-04 22:58 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59391
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Works for me in gcc version 4.9.0 20131026 (experimental) [trunk revision
204095] (GCC)
Can you try a newer version as 4.4 is no longer supported.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/59391] std::sort will go out of std::vector bounds and crash
[not found] <bug-59391-4@http.gcc.gnu.org/bugzilla/>
2013-12-04 22:31 ` [Bug libstdc++/59391] std::sort will go out of std::vector bounds and crash awwafa at gmail dot com
2013-12-04 22:58 ` pinskia at gcc dot gnu.org
@ 2013-12-09 5:51 ` awwafa at gmail dot com
2013-12-15 21:29 ` olegendo at gcc dot gnu.org
2014-03-13 19:59 ` redi at gcc dot gnu.org
4 siblings, 0 replies; 5+ messages in thread
From: awwafa at gmail dot com @ 2013-12-09 5:51 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59391
--- Comment #3 from Ahmed Wafa <awwafa at gmail dot com> ---
Yes, it works fine for 4.9 and 4.8.2, i can see that the fix for Bug 58437 take
care of this problem. This now can be closed, not a duplicate, but as
indirectly fixed.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/59391] std::sort will go out of std::vector bounds and crash
[not found] <bug-59391-4@http.gcc.gnu.org/bugzilla/>
` (2 preceding siblings ...)
2013-12-09 5:51 ` awwafa at gmail dot com
@ 2013-12-15 21:29 ` olegendo at gcc dot gnu.org
2014-03-13 19:59 ` redi at gcc dot gnu.org
4 siblings, 0 replies; 5+ messages in thread
From: olegendo at gcc dot gnu.org @ 2013-12-15 21:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59391
Oleg Endo <olegendo at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
CC| |olegendo at gcc dot gnu.org
Resolution|--- |WORKSFORME
--- Comment #4 from Oleg Endo <olegendo at gcc dot gnu.org> ---
(In reply to Ahmed Wafa from comment #3)
> Yes, it works fine for 4.9 and 4.8.2, i can see that the fix for Bug 58437
> take care of this problem. This now can be closed, not a duplicate, but as
> indirectly fixed.
PR closed.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug libstdc++/59391] std::sort will go out of std::vector bounds and crash
[not found] <bug-59391-4@http.gcc.gnu.org/bugzilla/>
` (3 preceding siblings ...)
2013-12-15 21:29 ` olegendo at gcc dot gnu.org
@ 2014-03-13 19:59 ` redi at gcc dot gnu.org
4 siblings, 0 replies; 5+ messages in thread
From: redi at gcc dot gnu.org @ 2014-03-13 19:59 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59391
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|WORKSFORME |INVALID
--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
This is not a valid strict weak ordering:
bool compare_val(int* a, int* b) {
if (*a <= *b) return true;
return false;
}
See https://www.sgi.com/tech/stl/StrictWeakOrdering.html
It fails the irreflexive and antisymmetric requirements.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-03-13 19:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-59391-4@http.gcc.gnu.org/bugzilla/>
2013-12-04 22:31 ` [Bug libstdc++/59391] std::sort will go out of std::vector bounds and crash awwafa at gmail dot com
2013-12-04 22:58 ` pinskia at gcc dot gnu.org
2013-12-09 5:51 ` awwafa at gmail dot com
2013-12-15 21:29 ` olegendo at gcc dot gnu.org
2014-03-13 19:59 ` redi at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).