This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/16011] New: Outputting numbers with ostream in the locale fr_BE causes infinite recursion
- From: "olau at hardworking dot dk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Jun 2004 22:10:16 -0000
- Subject: [Bug libstdc++/16011] New: Outputting numbers with ostream in the locale fr_BE causes infinite recursion
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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