This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/52540] std::use_facet throws bad_cast when compiled with _GLIBCXX_DEBUG


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52540

--- Comment #8 from Pawel Sikora <pluto at agmk dot net> 2012-03-10 13:16:45 UTC ---
i've compared the .ii files with and without _GLIBCXX_DEBUG definition.
the debug version doesn't contain 'extern template (...)' for some classes.
i suppose there're odr violations (global locale objects?) in debug mode.
it may work on linux due to elf's weak binding feature but explicit
dllimport/export exposes problem on windows.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]