http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52188
Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2012-02-10 Ever Confirmed|0 |1 --- Comment #6 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-02-10 11:31:00 UTC --- So, if we'd want to be really consistent with symbols remaining in the libstdc++ object files at different optimization levels (I guess if you build libstdc++ with -O3 things might be different again) then we need to avoid removing unused instantiated templates as part of the optimization process. Not sure on what basis we choose to be exported symbols right now.