This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
g++-compiler bug? Problem with getline
- To: egcs-bugs at cygnus dot com
- Subject: g++-compiler bug? Problem with getline
- From: Peter Schmid <schmid at ltoi dot iap dot physik dot tu-darmstadt dot de>
- Date: Sat, 31 Jan 1998 17:34:07 +0100 (MEST)
The following program does not compile.
It did work with the previous egcs snapshot.
Peter Schmid
cat t.C
#include <iostream.h>
#include <string>
using namespace std;
int main ()
{
string zeile;
const string trenner(" \t,.;");
while (getline(cin,zeile)) {
string::size_type anf;
anf = zeile.find_first_not_of(trenner);
}
}
g++ -o t t.C -W -Wall
t.C: In function `int main()':
t.C:9: no matching function for call to `getline (_IO_istream_withassign &, bas
ic_string<char,string_char_traits<char>,__default_alloc_template<false,0> > &)'