diff options
author | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-26 06:23:47 +0000 |
---|---|---|
committer | bkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-26 06:23:47 +0000 |
commit | d2a5262e80851f5f1013d4279d269ddb475804c5 (patch) | |
tree | 4454c356e2fc31751f74d64f424188b7012fe27e /libstdc++-v3 | |
parent | 14ef1df0b8bf8fda66106964b67902da7ca68355 (diff) | |
download | gcc-d2a5262e80851f5f1013d4279d269ddb475804c5.tar.gz |
2001-10-25 Benjamin Kosnik <bkoz@redhat.com>
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
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 1ce42b72e35..51dccc966c4 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 e574db09ab2..4b2de13a37e 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; |