Re: [Bug c++/44840] New: bug in STL iterator class

2010-07-06 Thread Andrew Pinski
On Jul 6, 2010, at 7:21 AM, "andre dot bergner dot 0 at googlemail dot com" wrote: This is not a compiler bug, but a bug in the STL iterator class. The less-than-operator does not work properly. The following program can reproduce the bug. # include # include using namespace std; m

[Bug c++/44840] New: bug in STL iterator class

2010-07-06 Thread andre dot bergner dot 0 at googlemail dot com
This is not a compiler bug, but a bug in the STL iterator class. The less-than-operator does not work properly. The following program can reproduce the bug. # include # include using namespace std; main() { vector v; vector::iterator i = v.begin(); --i; cout << ( i - v.begin()