|
Martin Sebor made changes - 28/Jun/07 09:10 PM
Martin Sebor made changes - 28/Jun/07 09:10 PM
Resolved by the referenced change. Will close after test has been added to the regression suite.
Martin Sebor made changes - 29/Jun/07 05:03 AM
Martin Sebor made changes - 29/Jun/07 08:02 PM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
$ cat t.cpp && gmake t && ./t
#include <cassert>
#include <sstream>
int main () {
std::ostringstream s;
s.precision (8);
const std::num_put<char> &np =
std::use_facet<std::num_put<char> >(s.getloc ());
np.put (std::ostreambuf_iterator<char>(s), s, ' ', 1 / 0.0);
assert (s.str () == "inf");
}
CC -c -D_RWSTDDEBUG -mt -I/amd/devco/sebor/stdcxx/include -I/build/sebor/stdcxx-sunpro-5.8_j8-15D/include -I/amd/devco/sebor/stdcxx/examples/include -library=%none -g -xarch=v9 +w t.cpp
"/amd/devco/sebor/stdcxx/include/sstream", line 380: Warning: std::ostringstream::rdbuf hides the function std::ios::rdbuf(std::streambuf *).
"t.cpp", line 5: Where: While specializing "std::ostringstream ".
"t.cpp", line 5: Where: Specialized in non-template code.
1 Warning(s) detected.
CC t.o -o t -library=%none -mt -xarch=v9 -L/build/sebor/stdcxx-sunpro-5.8_j8-15D/lib -R/build/sebor/stdcxx-sunpro-5.8_j8-15D/lib -lstd15D -lm
Assertion failed: s.str () == "inf", file t.cpp, line 13
Abort (core dumped)