This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/41448] std::sort on std::vector<float> with certain values leads to segfault in the vector destructor
- From: "4ernov at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Sep 2009 16:04:24 -0000
- Subject: [Bug libstdc++/41448] std::sort on std::vector<float> with certain values leads to segfault in the vector destructor
- References: <bug-41448-18221@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from 4ernov at gmail dot com 2009-09-23 16:04 -------
Oh, I've tried to find info how the implementation manages NaNs but didn't find
any clear info. So is it the expected behavior? And is it safe to use
std::stable_sort for vectors with NaNs or I was just lucky?
Actually, NaNs in the flow is an error in my program which I fixed, but I
decided to save the faulty state to file the report.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41448