re PR libstdc++/14072 (basic_ios::imbue leaves dangling pointers)
authorPaolo Carlini <pcarlini@suse.de>
Mon, 9 Feb 2004 09:02:52 +0000 (09:02 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Mon, 9 Feb 2004 09:02:52 +0000 (09:02 +0000)
commit86fd2b512a1e282072ca7e72905ebded5b5cd30d
treed18b83860ee1d2f3ac2d668a4a349f27432b68da
parente333a61815b7ced28c4bc1337040b123c54c488f
re PR libstdc++/14072 (basic_ios::imbue leaves dangling pointers)

2004-02-09  Paolo Carlini  <pcarlini@suse.de>

PR libstdc++/14072
* include/bits/basic_ios.tcc (basic_ios<>::_M_cache_locale):
Don't leave dangling pointers.
* testsuite/27_io/basic_ios/imbue/14072.cc: New.
* testsuite/22_locale/numpunct/members/pod/2.cc: Tweak, the num_put
facet is needed in the final test.

From-SVN: r77526
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/basic_ios.tcc
libstdc++-v3/testsuite/22_locale/numpunct/members/pod/2.cc
libstdc++-v3/testsuite/27_io/basic_ios/imbue/14072.cc [new file with mode: 0644]