The following programm enters an endless loop with recursively calling std::money_put<char, std::ostreambuf_iterator<char, std::char_traits<char> > >::~money_put () ****************** #include <locale> #include <iostream> #include <math.h>
int main() { std::cout.imbue(std::locale("sl_SI")); std::cout << "pi = " << M_PI << std::endl; return 0; } ****************** This appears under SuSE 10.0, other locales work, but sl_SI shows the described behaviour. gcc version: **************** gcc -v Using built-in specs. Target: i586-suse-linux Configured with: ../configure --enable-threads=posix --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,f95,java,ada --disable-checking --with-gxx-include-dir=/usr/include/c++/4.0.2 --enable-java-awt=gtk --disable-libjava-multilib --with-slibdir=/lib --with-system-zlib --enable-shared --enable-__cxa_atexit --without-system-libunwind --host=i586-suse-linux Thread model: posix gcc version 4.0.2 20050901 (prerelease) (SUSE Linux) ********************* -- Summary: endless loop when with sl_SI locale. Product: gcc Version: 4.0.2 Status: UNCONFIRMED Severity: major Priority: P3 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: wolfgang dot glas at ev-i dot at GCC build triplet: i586-suse-linux GCC host triplet: i586-suse-linux GCC target triplet: i586-suse-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25807