|
The problem introduced with changes for
------- std::cerr.tie (&std::cout); Here cout tied with cerr and cerr tied with cout. The cerr::operator<<() constructs sentry object (in __rw_insert()), the sentry ctor flushes tied cout stream (in _C_opfx()), the cout.flush() also constructs the sentry object, which flushes the tied cerr stream and so on until stack overflow occurs. Attached c++std-lib-20887 with the proposed resolution sent to the C++ committe's reflector.
This isn't MSVC-specific but rather affects all platforms.
Fix and regression test are merged in 4.2.x branch thus: http://svn.apache.org/viewvc?view=rev&revision=648752
Verified on 4.2.x and 4.3.x.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
STDCXX-813observed on other platforms, including AIX, HP-UX, and Solaris.