std::list iterator not dereferencable

Joe Buck Joe.Buck@synopsys.COM
Mon Mar 27 01:17:00 GMT 2006


On Mon, Mar 27, 2006 at 01:16:00AM +0200, Mateusz Łoskot wrote:
> Today, I tried to build some Linux application using VC++ 7.1/8.0
> and I encountered strange GCC 3.2.3 behaviour that make me thinking
> about possible bug in GCC (or libstdc++, I'm not sure).

As you say, your code is invalid: the iterator points to an object that
has been destroyed.  The behavior of different compilers on
invalid code is likely to depend on implementation details; it is
not a bug that you see differences.



More information about the Libstdc++ mailing list