This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: libstdc++/1710


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

From: pme@gcc.gnu.org
To: gcc-gnats@gcc.gnu.org, mdh_gcc@hotmail.com, nobody@gcc.gnu.org
Cc:  
Subject: Re: libstdc++/1710
Date: 27 Jan 2001 21:37:37 -0000

 Synopsis: strings.find_last_of() function works only if I explicitly reference the strings.c_str() function after calling it
 
 State-Changed-From-To: open->closed
 State-Changed-By: pme
 State-Changed-When: Sat Jan 27 13:37:36 2001
 State-Changed-Why:
     Thanks for your bug report.
     
     After changing the example code to include <iostream>,
     declare main() as returning 'int' (this is not an option
     in standard C++), and adding 'using' statements for
     std::string and std::cout, this code works under current
     CVS:
     
         % HOME=${HOME}///////////  ./a.out
         home.value now /home/pme///////////'
         home.value now /home/pme'
         %
     
     With the cout statement uncommented, this also does the
     expected thing.  So this bug is fixed in current
     development sources.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=1710&database=gcc

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]