OSDN Git Service

2001-10-25 Benjamin Kosnik <bkoz@redhat.com>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Oct 2001 06:23:47 +0000 (06:23 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Oct 2001 06:23:47 +0000 (06:23 +0000)
libstdc++/4542
* include/bits/locale_facets.tcc (time_get::_M_extract_name): Fix.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46529 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/locale_facets.tcc

index 1ce42b7..51dccc9 100644 (file)
@@ -1,5 +1,10 @@
 2001-10-25  Benjamin Kosnik  <bkoz@redhat.com>
 
+       libstdc++/4542
+       * include/bits/locale_facets.tcc (time_get::_M_extract_name): Fix.
+
+2001-10-25  Benjamin Kosnik  <bkoz@redhat.com>
+
        libstdc++/4545
        * include/bits/ostream.tcc (ostream::operator<<(streambuf*)): Fix
        exceptions.
index e574db0..4b2de13 100644 (file)
@@ -1566,7 +1566,7 @@ namespace std
                    ios_base::iostate& __err) const
     {
       typedef char_traits<char_type> __traits_type;
-      int __matches[__indexlen];
+      int* __matches = static_cast<int*>(__builtin_alloca(sizeof(int) * __indexlen));
       size_t __nmatches = 0;
       size_t __pos = 0;
       bool __testvalid = true;