This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug testsuite/31884] priority_queue_dijkstra.cc operates on deallocated memory
- From: "amylaar at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 May 2007 14:02:26 -0000
- Subject: [Bug testsuite/31884] priority_queue_dijkstra.cc operates on deallocated memory
- References: <bug-31884-5394@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from amylaar at gcc dot gnu dot org 2007-05-10 15:02 -------
I find that the failure goes away when I assign a_it[0] to the iterator
for the current node before p.pop, and make the loop skip an iteration when it
finds that the iterator for the current neighbor is a_it[0].
Does that also work for you on powerpc?
--
amylaar at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dje at watson dot ibm dot
| |com, bkoz at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31884