This is the mail archive of the gcc-patches@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]

[v3] libstdc++/4542



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;


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