Return-Path: Delivered-To: apmail-incubator-stdcxx-dev-archive@www.apache.org Received: (qmail 96230 invoked from network); 24 Aug 2007 00:33:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Aug 2007 00:33:04 -0000 Received: (qmail 92021 invoked by uid 500); 24 Aug 2007 00:33:00 -0000 Delivered-To: apmail-incubator-stdcxx-dev-archive@incubator.apache.org Received: (qmail 92006 invoked by uid 500); 24 Aug 2007 00:33:00 -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 91995 invoked by uid 99); 24 Aug 2007 00:33:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 Aug 2007 17:33:00 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Aug 2007 00:32:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A4E68714210 for ; Thu, 23 Aug 2007 17:32:30 -0700 (PDT) Message-ID: <7532502.1187915550673.JavaMail.jira@brutus> Date: Thu, 23 Aug 2007 17:32:30 -0700 (PDT) From: "Martin Sebor (JIRA)" To: stdcxx-dev@incubator.apache.org Subject: [jira] Updated: (STDCXX-272) [LWG #625] std::string::find_first_of() returns 0 for the empty string In-Reply-To: <18741776.1155331694054.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 [ https://issues.apache.org/jira/browse/STDCXX-272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Martin Sebor updated STDCXX-272: -------------------------------- Summary: [LWG #625] std::string::find_first_of() returns 0 for the empty string (was: std::string::find_first_of() returns 0 for the empty string) Added an [LWG #625] tag to indicate that this depends on Library Working Group issue 625: http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#625 > [LWG #625] std::string::find_first_of() returns 0 for the empty string > ---------------------------------------------------------------------- > > Key: STDCXX-272 > URL: https://issues.apache.org/jira/browse/STDCXX-272 > Project: C++ Standard Library > Issue Type: Bug > Components: 21. Strings > Affects Versions: 4.1.2, 4.1.3 > Environment: all > Reporter: Martin Sebor > Assignee: Martin Sebor > > The program below is expected to run succeffully to completion (since the returned value must be less than the size of the string) but instead it aborts. > $ cat t.cpp && nice gmake t && ./t > #include > #include > int main () > { > std::string::size_type xpos = > std::string ("").find_first_of ("cba", 0, std::string::npos); > assert (std::string::npos == xpos); > } > aCC -c -I/amd/devco/sebor/dev/stdlib/include/ansi -I/usr/include -D_RWSTDDEBUG -D_RWSTD_USE_CONFIG -I/amd/devco/sebor/dev/stdlib/include -I/build/sebor/aCC-3.70-11d/include -I/amd/devco/sebor/dev/stdlib/examples/include -Aa +nostl -g +d +w +W392 +W655 +W684 +W818 +W819 +W849 t.cpp > aCC t.o -o t -Aa +nostl -Wl,+s -Wl,+vnocompatwarnings -L/build/sebor/aCC-3.70-11d/lib -L/build/sebor/aCC-3.70-11d/lib -lstd11d -lm > ABORT instruction (core dumped) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.