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++/16011] New: Outputting numbers with ostream in the locale fr_BE causes infinite recursion


The following program causes infinite recursion in 
std::has_facet<std::messages<wchar_t> >:

#include <iostream>

int main()
{
  std::cout.imbue(std::locale("fr_BE.ISO-8859-1"));
  std::cout << 3;
}

The program immediately crashes without outputting the expected 3. A backtrace
in GDB just produces an awful lot of has_facet lines. I've tried limiting the
stack size with "ulimit -s", but no luck. This is on Debian unstable, x86.

-- 
           Summary: Outputting numbers with ostream in the locale fr_BE
                    causes infinite recursion
           Product: gcc
           Version: 3.3.4
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: olau at hardworking dot dk
                CC: gcc-bugs at gcc dot gnu dot org


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


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