http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49992
--- Comment #14 from Jack Howarth <howarth at nitro dot med.uc.edu> 2011-08-09 00:09:08 UTC --- Iain, I would also add that when I was trying avoid having to resort to http://gcc.gnu.org/ml/gcc-patches/2009-08/msg01583.html, I found that the linker bug, where duplicate symbols in static libraries weren't properly ignored, appeared to require a specific set of object files to trigger. I believe you will find that if you attempt to extract a reduced test case from just the declarations of trim_filename in errors.c and diagnostics.c, with one in a static lib, you won't be able to trigger the problem.