gdb discrepancy in c++ iterators

2003-03-29 Thread Fred Ma
Hello, I'm having the following problem only on cygwin, not on solaris 8. I have a sanity-check program: #includevector #includeiostream using namespace std; int main(void) { vectorint vi(3); vectorint::iterator it_vi = vi.begin(); cout Hello

Re: gdb discrepancy in c++ iterators

2003-03-29 Thread Igor Pechtchanski
On Sat, 29 Mar 2003, Fred Ma wrote: Hello, I'm having the following problem only on cygwin, not on solaris 8. I have a sanity-check program: #includevector #includeiostream using namespace std; int main(void) { vectorint vi(3);

Re: gdb discrepancy in c++ iterators

2003-03-29 Thread Fred Ma
Igor Pechtchanski wrote: On Sat, 29 Mar 2003, Fred Ma wrote: Hello, I'm having the following problem only on cygwin, not on solaris 8. I have a sanity-check program: #includevector #includeiostream using namespace std; int main(void) {

Re: gdb discrepancy in c++ iterators

2003-03-29 Thread Igor Pechtchanski
On Sat, 29 Mar 2003, Fred Ma wrote: Igor Pechtchanski wrote: On Sat, 29 Mar 2003, Fred Ma wrote: Hello, I'm having the following problem only on cygwin, not on solaris 8. I have a sanity-check program: #includevector #includeiostream using namespace

Re: gdb discrepancy in c++ iterators

2003-03-29 Thread Fred Ma
Igor Pechtchanski wrote: Depending on the optimization level you used to compile the program (and on the flags in the gcc specs file, and the gcc compilation options, which are surely different on the two systems), it's quite possible gdb got confused about where in the program you were with