http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1773
--- Comment #100 from Marc Glisse <marc.glisse at normalesup dot org> 2011-08-01 16:17:25 UTC --- Created attachment 24884 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24884 Alter mangling of std::tm and std::ldiv_t And I attach a patch that mangles std::tm as ::tm, and the same for ldiv_t. Of course it would also require div_t, lconv, and whatever else a grep will turn up. Note that I don't understand half of the macros in the patch (everything to do with TYPE is likely useless) but it seems to work. Note also that I don't answer the question of whether we want to do such a thing (which should allow compatibility with older gcc and can be reverted at the next ABI break), or even do it just for solaris. (if anyone wants to try, you'll likely hit PR 49914, which can be worked around by s/abs/llabs/ wherever it complains)