Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
4.2.0
-
None
-
Sun Studio 12 (Sun C++ 5.9)
Solaris 10/AMD64
-
Incorrect Behavior
Description
When compiled with Sun C++ 5.9 in wide mode (with the -m64 option) the 0.strncmp test fails two subtests. This happens both with 4.2.0 and the head of trunk. No other platforms seem to be affected. Suspect a compiler bug.
$ gmake -r 0.strncmp && ./0.strncmp CC -c -D_RWSTDDEBUG -mt -I/amd/devco/sebor/stdcxx/include -I/build/sebor/stdcxx-suncc-5.9-j1-15D/include -I/amd/devco/sebor/stdcxx/tests/include -library=%none -g -m64 +w -errtags -erroff=hidef /amd/devco/sebor/stdcxx/tests/self/0.strncmp.cpp CC 0.strncmp.o -o 0.strncmp -L/build/sebor/stdcxx-suncc-5.9-j1-15D/rwtest -lrwtest15D -library=%none -mt -m64 -L/build/sebor/stdcxx-suncc-5.9-j1-15D/lib -R/build/sebor/stdcxx-suncc-5.9-j1-15D/lib:/build/sebor/stdcxx-suncc-5.9-j1-15D/rwtest -lstd15D -lm rm 0.strncmp.o rw_strncmp(const char*, const char*, size_t, int) line 86: rw_strncmp(405598, 40559a, 4294967295, -1) == 1, got 0 line 87: rw_strncmp(4055d1, 4055d2, 4294967295, -1) == -1, got 0 rw_strncmp(const wchar_t*, const wchar_t*, size_t, int) rw_strncmp(const wchar_t*, const char*, size_t, int) rw_strncmp(const char*, const wchar_t*, size_t, int)