You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2006/06/05 21:44:47 UTC
[jira] Updated: (STDCXX-174) [MSVC/Win64] std::bitset::count()
returns wrong value
[ http://issues.apache.org/jira/browse/STDCXX-174?page=all ]
Martin Sebor updated STDCXX-174:
--------------------------------
Fix Version: 4.2
(was: 4.1.4)
> [MSVC/Win64] std::bitset::count() returns wrong value
> -----------------------------------------------------
>
> Key: STDCXX-174
> URL: http://issues.apache.org/jira/browse/STDCXX-174
> Project: C++ Standard Library
> Type: Bug
> Components: 23. Containers
> Versions: 4.1.3
> Environment: MSVC/Win64
> Reporter: Martin Sebor
> Assignee: Martin Sebor
> Fix For: 4.2
>
> When compiled with MSVC on Win64 the program below aborts at runtime.
> $ cat bitset.cpp && nmake bitset.exe
> #include <bitset>
> #include <cassert>
> int main ()
> {
> std::bitset<1> b;
> b = ~b;
> assert (1 == b.count ());
> }
> Microsoft (R) Program Maintenance Utility Version 8.00.50727.42
> Copyright (C) Microsoft Corporation. All rights reserved.
> cl -D_RWCONFIG=12d -Ic:\build\sebor\stdlib-4.1.4\examples\stdlib\manual/../include -I.\..\..\..\../include -Ic:\build\sebor\stdlib-4.1.4/include -Ic:/build/sebor/stdlib-4.1.4/include/ansi -I.\..\..\..\.. -Ic:\build\sebor\stdlib-4.1.4 -Ic:\build\sebor\stdlib-4.1.4\examples\stdlib\manual -nologo -EHsc -MD -W3 -O2 -GR -c c:\build\sebor\stdlib-4.1.4\examples\stdlib\manual\bitset.cpp
> bitset.cpp
> link -nologo /NODEFAULTLIB:msvcprt /LIBPATH:.\..\..\..\..\lib /OUT:bitset.exe bitset.obj std12d.lib user32.lib
> C:\build\sebor\stdlib-4.1.4-build\examples\stdlib\manual\12d>bitset.exe
> Assertion failed: 1 == b.count (), file c:\build\sebor\stdlib-4.1.4\examples\stdlib\manual\bitset.cpp, line 8
> This application has requested the Runtime to terminate it in an unusual way.
> Please contact the application's support team for more information.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira