locale_facets.tcc (time_get::_M_extract_name): Fix.
authorBenjamin Kosnik <bkoz@redhat.com>
Fri, 26 Oct 2001 06:23:47 +0000 (06:23 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Fri, 26 Oct 2001 06:23:47 +0000 (06:23 +0000)
2001-10-25  Benjamin Kosnik  <bkoz@redhat.com>

libstdc++/4542
* include/bits/locale_facets.tcc (time_get::_M_extract_name): Fix.

From-SVN: r46529

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

index 1ce42b72e35b6ba6b56055d46b089e8a37803b55..51dccc966c48eaa66148146a8c5234b2de5fbcb8 100644 (file)
@@ -1,3 +1,8 @@
+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
index e574db09ab2f3b966b3001a7ec6dfc121e69879c..4b2de13a37e8066bf054d44124698885ad3325c5 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;