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

2012-03-23 Thread paolo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52540 --- Comment #17 from paolo at gcc dot gnu.org paolo at gcc dot gnu.org 2012-03-23 11:01:01 UTC --- Author: paolo Date: Fri Mar 23 11:00:54 2012 New Revision: 185733 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=185733 Log: 2012-03-23

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

2012-03-23 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52540 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added Status|NEW |RESOLVED

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

2012-03-19 Thread paolo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52540 --- Comment #16 from paolo at gcc dot gnu.org paolo at gcc dot gnu.org 2012-03-19 23:48:21 UTC --- Author: paolo Date: Mon Mar 19 23:48:16 2012 New Revision: 185548 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=185548 Log: 2012-03-19

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

2012-03-16 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52540 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added CC||bkoz at

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

2012-03-16 Thread pluto at agmk dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52540 --- Comment #15 from Pawel Sikora pluto at agmk dot net 2012-03-16 10:27:53 UTC --- (In reply to comment #14) Now, if something got broken lately, like those sed, I have no idea, certainly I didn't change that. But, please post and discuss

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

2012-03-15 Thread pluto at agmk dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52540 --- Comment #12 from Pawel Sikora pluto at agmk dot net 2012-03-15 15:49:09 UTC --- hmm, i see something weird. in source tree the c++config.h contains: # undef _GLIBCXX_EXTERN_TEMPLATE # define _GLIBCXX_EXTERN_TEMPLATE -1 but after

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

2012-03-15 Thread pluto at agmk dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52540 --- Comment #13 from Pawel Sikora pluto at agmk dot net 2012-03-15 16:36:33 UTC --- Created attachment 26899 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26899 don't touch with sed the _GLIBCXX_EXTERN_TEMPLATE redefiniton.

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

2012-03-11 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52540 --- Comment #9 from Paolo Carlini paolo.carlini at oracle dot com 2012-03-11 11:20:40 UTC --- Then this is a very old issue, isn't it? Why nobody noticed it before? To be clear, in debug-mode we don't use extern templates only for basic_string

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

2012-03-11 Thread ktietz at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52540 --- Comment #10 from Kai Tietz ktietz at gcc dot gnu.org 2012-03-11 18:35:59 UTC --- (In reply to comment #9) Then this is a very old issue, isn't it? Why nobody noticed it before? To be clear, in debug-mode we don't use extern templates only

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

2012-03-11 Thread pluto at agmk dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52540 --- Comment #11 from Pawel Sikora pluto at agmk dot net 2012-03-11 19:49:41 UTC --- (In reply to comment #9) Then this is a very old issue, isn't it? Why nobody noticed it before? To be clear, in debug-mode we don't use extern templates only

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

2012-03-10 Thread pluto at agmk dot net
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52540 --- Comment #7 from Pawel Sikora pluto at agmk dot net 2012-03-10 13:14:18 UTC --- Created attachment 26871 -- http://gcc.gnu.org/bugzilla/attachment.cgi?id=26871 testcase

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

2012-03-10 Thread pluto at agmk dot net
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

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

2012-03-09 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52540 Paolo Carlini paolo.carlini at oracle dot com changed: What|Removed |Added CC|

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

2012-03-09 Thread ktietz at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52540 --- Comment #2 from Kai Tietz ktietz at gcc dot gnu.org 2012-03-09 11:19:34 UTC --- Hmm, I tested this testcase on my cygwin-cross-compiler for x64 and I didn't noticed this failure. I get for it by shown samples always proper output (eg

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

2012-03-09 Thread ktietz at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52540 Kai Tietz ktietz at gcc dot gnu.org changed: What|Removed |Added Status|UNCONFIRMED |NEW Last

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

2012-03-09 Thread ktietz at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52540 --- Comment #4 from Kai Tietz ktietz at gcc dot gnu.org 2012-03-09 12:00:00 UTC --- Issue happens in include/bits/locale_classes.tcc: templatetypename _Facet const _Facet use_facet(const locale __loc) {

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

2012-03-09 Thread paolo.carlini at oracle dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52540 --- Comment #5 from Paolo Carlini paolo.carlini at oracle dot com 2012-03-09 12:55:30 UTC --- I would recommend trying to figure out first when the problem has been introduced, without excluding some sort of compiler issue, because these library

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

2012-03-09 Thread ktietz at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52540 --- Comment #6 from Kai Tietz ktietz at gcc dot gnu.org 2012-03-09 13:00:40 UTC --- Hmm, it seems to be a shared/static issue on Windows. As if I pass to command-line -static with the define, the test passes too.