Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 3534 invoked from network); 11 Jun 2006 21:47:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Jun 2006 21:47:40 -0000 Received: (qmail 56863 invoked by uid 500); 11 Jun 2006 21:47:40 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 56837 invoked by uid 500); 11 Jun 2006 21:47:40 -0000 Mailing-List: contact stdcxx-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-dev@incubator.apache.org Delivered-To: mailing list stdcxx-dev@incubator.apache.org Received: (qmail 56826 invoked by uid 99); 11 Jun 2006 21:47:39 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Jun 2006 14:47:39 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Jun 2006 14:47:39 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9531D7141F9 for ; Sun, 11 Jun 2006 21:46:30 +0000 (GMT) Message-ID: <25579971.1150062390608.JavaMail.jira@brutus> Date: Sun, 11 Jun 2006 21:46:30 +0000 (GMT+00:00) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Resolved: (STDCXX-174) [MSVC/Win64] std::bitset::count() returns wrong value In-Reply-To: <10780914.1145573045764.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/STDCXX-174?page=all ] Martin Sebor resolved STDCXX-174: --------------------------------- Resolution: Fixed Wixed with the referenced change. > [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 > #include > 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