[Bug libstdc++/67903] std::locale compatibility between gcc4.9 and gcc5.1

2019-10-09 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67903 --- Comment #6 from Jonathan Wakely --- (In reply to Yucheng Low from comment #5) > - We compile as a shared library to be imported into Python as part of a > python > module. > - We want to use C++11 features yet we want to be able to run on

[Bug libstdc++/67903] std::locale compatibility between gcc4.9 and gcc5.1

2016-03-02 Thread ylow at graphlab dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67903 --- Comment #5 from Yucheng Low --- After some deep investigation on a related issue, I think might finally have a root cause. Introduction - We compile as a shared library to be imported into Python as part of a python module.

[Bug libstdc++/67903] std::locale compatibility between gcc4.9 and gcc5.1

2015-10-09 Thread ylow at graphlab dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67903 --- Comment #4 from Yucheng Low --- I have tried version scripts and it ought to work but I couldn't quite figure out what symbols to hide. In any case, the proposed modification does fix a questionable bit of code in locale.cc (i.e. the resize

[Bug libstdc++/67903] std::locale compatibility between gcc4.9 and gcc5.1

2015-10-09 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67903 --- Comment #3 from Jonathan Wakely --- (If this is something that should be fixed in the library at all),

[Bug libstdc++/67903] std::locale compatibility between gcc4.9 and gcc5.1

2015-10-09 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67903 --- Comment #2 from Jonathan Wakely --- (In reply to Yucheng Low from comment #0) > This would not be a problem if not for the fact that: > - the global locale is initialized with an inplace new: > locale_init.cc:378 > _M_fac

[Bug libstdc++/67903] std::locale compatibility between gcc4.9 and gcc5.1

2015-10-09 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67903 --- Comment #1 from Richard Biener --- To me it looks like the issue is that when statically linking libstdc++ into a shared library you export the symbols of that libstdc++ copy and thus they participate in merging. So my suggestion is that you