Bug 16011 - Outputting numbers with ostream in the locale fr_BE causes infinite recursion
Summary: Outputting numbers with ostream in the locale fr_BE causes infinite recursion
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 3.3.4
: P2 normal
Target Milestone: 3.4.0
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-15 22:10 UTC by Ole Laursen
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ole Laursen 2004-06-15 22:10:11 UTC
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.
Comment 1 Andrew Pinski 2004-06-15 23:56:47 UTC
Can you try 3.4.0?
Comment 2 Andrew Pinski 2004-06-16 06:51:56 UTC
Fixed for 3.4.0.