[Bug testsuite/31884] priority_queue_dijkstra.cc operates on deallocated memory
amylaar at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu May 10 14:02:00 GMT 2007
------- 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
More information about the Gcc-bugs
mailing list