libstdc++/1710
pme@gcc.gnu.org
pme@gcc.gnu.org
Sun Apr 1 00:00:00 GMT 2001
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
More information about the Gcc-prs
mailing list