public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/3358: wrong return value of find_first_not_of
@ 2001-11-04 13:51 bkoz
  0 siblings, 0 replies; 4+ messages in thread
From: bkoz @ 2001-11-04 13:51 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR libstdc++/3358; it has been noted by GNATS.

From: bkoz@gcc.gnu.org
To: arvin@suse.de, gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org,
  gcc-prs@gcc.gnu.org, nobody@gcc.gnu.org
Cc:  
Subject: Re: libstdc++/3358: wrong return value of find_first_not_of
Date: 15 Nov 2001 21:31:00 -0000

 Synopsis: wrong return value of find_first_not_of
 
 State-Changed-From-To: feedback->closed
 State-Changed-By: bkoz
 State-Changed-When: Thu Nov 15 13:31:00 2001
 State-Changed-Why:
     Fixed.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=3358&database=gcc


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libstdc++/3358: wrong return value of find_first_not_of
@ 2001-11-04 12:56 bkoz
  0 siblings, 0 replies; 4+ messages in thread
From: bkoz @ 2001-11-04 12:56 UTC (permalink / raw)
  To: arvin, gcc-bugs, gcc-gnats, gcc-prs, nobody

Synopsis: wrong return value of find_first_not_of

State-Changed-From-To: feedback->closed
State-Changed-By: bkoz
State-Changed-When: Thu Nov 15 13:31:00 2001
State-Changed-Why:
    Fixed.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=3358&database=gcc


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: libstdc++/3358: wrong return value of find_first_not_of
@ 2001-06-26 17:26 bkoz
  0 siblings, 0 replies; 4+ messages in thread
From: bkoz @ 2001-06-26 17:26 UTC (permalink / raw)
  To: arvin, gcc-bugs, gcc-prs, nobody

Synopsis: wrong return value of find_first_not_of

State-Changed-From-To: open->feedback
State-Changed-By: bkoz
State-Changed-When: Tue Jun 26 17:26:12 2001
State-Changed-Why:
    This is not a bug, the previous version of gcc was incorrect.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=3358&database=gcc


^ permalink raw reply	[flat|nested] 4+ messages in thread

* libstdc++/3358: wrong return value of find_first_not_of
@ 2001-06-22  4:06 arvin
  0 siblings, 0 replies; 4+ messages in thread
From: arvin @ 2001-06-22  4:06 UTC (permalink / raw)
  To: gcc-gnats

>Number:         3358
>Category:       libstdc++
>Synopsis:       wrong return value of find_first_not_of
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 22 04:06:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     arvin@suse.de
>Release:        gcc 3.0
>Organization:
>Environment:

>Description:
the string function find_first_not_of return
a wrong value if the second argument is the
empty string.
>How-To-Repeat:
#include <iostream.h>
#include <string>

int
main ()
{
    std::string a = "abcdef";

    cout << a.find_first_not_of ("abcdef") << '\n';
    cout << a.find_first_not_of ("abef") << '\n';
    cout << a.find_first_not_of ("0123") << '\n';
    cout << a.find_first_not_of ("") << '\n';
}

gcc 2.95:

4294967295
2
0
0

gcc 3.0:

4294967295
2
0
4294967295
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-11-15 21:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-04 13:51 libstdc++/3358: wrong return value of find_first_not_of bkoz
  -- strict thread matches above, loose matches on Subject: below --
2001-11-04 12:56 bkoz
2001-06-26 17:26 bkoz
2001-06-22  4:06 arvin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).