http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52604
--- Comment #8 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-04-11 01:08:12 UTC --- Note, stylistically, no curly brackets in the if body, and also no NULL, just 0 in C++98. I also note that you are not patching mainline, all the fixes go to mainline first. Finally, more substantively, how did you test the patch? Running make check-performance exercises mt_allocator quite a bit, for example. Are all the leaks / crashes gone with the patch?