AFAIK gcc is not the best designed program in the world (I just compiled it once, and to me it seemed to be a huge bunch of patches over patches).
At the same time I know C++ enough to consider it extremely error-prone, expecially if not managed correctly!
Put together the two things and ...maybe it's time to have a look to some other compiler. What about TCC? :P