[Bug libstdc++/52540] std::use_facet throws bad_cast when compiled with _GLIBCXX_DEBUG
pluto at agmk dot net
gcc-bugzilla@gcc.gnu.org
Sat Mar 10 13:17:00 GMT 2012
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.
More information about the Gcc-bugs
mailing list