diff options
author | Benjamin Kosnik <bkoz@redhat.com> | 2001-10-26 06:23:47 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2001-10-26 06:23:47 +0000 |
commit | 013e8d9783941eef8c6abc280dbcfc09f8209e85 (patch) | |
tree | 4454c356e2fc31751f74d64f424188b7012fe27e /libstdc++-v3 | |
parent | 6cf5465d43d70fb73bde88435327f64be51bfb55 (diff) | |
download | gcc-013e8d9783941eef8c6abc280dbcfc09f8209e85.zip gcc-013e8d9783941eef8c6abc280dbcfc09f8209e85.tar.gz gcc-013e8d9783941eef8c6abc280dbcfc09f8209e85.tar.bz2 |
locale_facets.tcc (time_get::_M_extract_name): Fix.
2001-10-25 Benjamin Kosnik <bkoz@redhat.com>
libstdc++/4542
* include/bits/locale_facets.tcc (time_get::_M_extract_name): Fix.
From-SVN: r46529
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/locale_facets.tcc | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1ce42b7..51dccc9 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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. diff --git a/libstdc++-v3/include/bits/locale_facets.tcc b/libstdc++-v3/include/bits/locale_facets.tcc index e574db0..4b2de13a 100644 --- a/libstdc++-v3/include/bits/locale_facets.tcc +++ b/libstdc++-v3/include/bits/locale_facets.tcc @@ -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; |