This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[v3] libstdc++/4542
- To: gcc-patches at gcc dot gnu dot org
- Subject: [v3] libstdc++/4542
- From: Benjamin Kosnik <bkoz at redhat dot com>
- Date: Thu, 25 Oct 2001 22:40:45 -0700
tested/x86
2001-10-25 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/4542
* include/bits/locale_facets.tcc (time_get::_M_extract_name): Fix.
Index: include/bits/locale_facets.tcc
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/include/bits/locale_facets.tcc,v
retrieving revision 1.31
diff -c -p -r1.31 locale_facets.tcc
*** locale_facets.tcc 2001/10/25 22:56:07 1.31
--- locale_facets.tcc 2001/10/26 05:39:45
*************** namespace std
*** 1566,1572 ****
ios_base::iostate& __err) const
{
typedef char_traits<char_type> __traits_type;
! int __matches[__indexlen];
size_t __nmatches = 0;
size_t __pos = 0;
bool __testvalid = true;
--- 1566,1572 ----
ios_base::iostate& __err) const
{
typedef char_traits<char_type> __traits_type;
! int* __matches = static_cast<_CharT*>(__builtin_alloca(sizeof(int) * __indexlen));
size_t __nmatches = 0;
size_t __pos = 0;
bool __testvalid = true;