delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <00c201c0ee02$458b0d60$6982c039@3hi25.flashcom.com> |
Reply-To: | "Clark Sims" <csims AT templartrading DOT com> |
From: | "Clark Sims" <csims AT templartrading DOT com> |
To: | <cygwin AT cygwin DOT com> |
Subject: | bug report on gcc port |
Date: | Tue, 5 Jun 2001 15:58:27 -0500 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook Express 4.72.3110.5 |
X-MimeOLE: | Produced By Microsoft MimeOLE V4.72.3110.3 |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |