I'm looking for an idea how to find all the while loops in my huge code that declare a variable within the loop header. The problem is that
while ( item a = list.next() )
is not working correctly in xlC 12.1 : the constructor of 'item' is called for each iteration of the loop, but the destructor is called only once. This seems to be a bug in the compiler. The result was a memory leak with the new compiler.
Anyway, I want to make sure it doesn't happen in other places in the program, and I don't really know how to do it. Any ideas?