This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
g++ infinite loop
- From: b u <bnulbig at yahoo dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 22 Jul 2004 23:38:06 -0700 (PDT)
- Subject: g++ infinite loop
I am compiling a project with g++ 3.3.2 && 2.95.3. It
goes into an infinite loop when a call to the
following class method (in my source) is made:
void newSection() { mSectionOffset.push_back(
mTop ); }
mSectionOffset is a member defined as:
mutable std::vector< unsigned > mSectionOffset;
I know its this call because the project compiles fine
w/o it. I've tried variants:
void newSection() {}; // worked
void newSection() { mSectionOffset[0] = mTop; }
// worked
void newSection() { mSectionOffset.resize(
mSectionOffset.size()+1, mTop ); }
// failed
Where can I start to track down the bug?
Ben
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail