This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
bug report on gcc port
- To: <cygwin at cygwin dot com>
- Subject: bug report on gcc port
- From: "Clark Sims" <csims at templartrading dot com>
- Date: Tue, 5 Jun 2001 15:58:27 -0500
- Reply-To: "Clark Sims" <csims at templartrading dot com>
The following code fragment bombs the cygwin port of gcc:
#include <string>
#include <ctype.h>
std::string foo( const std::string& rhs);
std::string foo( const std::string& rhs) {
std::string str = rhs;
for (size_t i=0; i<str.size(); i++) {
str[i] = ::tolower( str[i]);
}
return str;
}
gcc -c foo.cpp :
foo.cpp: In function `class string foo(const string &)':
foo.cpp:9: parse error before `__extension__'
foo.cpp:9: `__x' undeclared (first use this function)
foo.cpp:9: (Each undeclared identifier is reported only once
foo.cpp:9: for each function it appears in.)
foo.cpp:9: parse error before `)'
The code fragments works well in other compilers and other ports of gcc.
--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple