This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: bug in egcs-1.1.2?
- To: mike.fabian@it-mannesmann.de
- Subject: Re: bug in egcs-1.1.2?
- From: Mumit Khan <khan@xraylith.wisc.edu>
- Date: Tue, 18 May 1999 17:47:34 -0500
- cc: cygwin@sourceware.cygnus.com
Mike Fabian <mike.fabian@it-mannesmann.de> writes:
> Hello,
>
> I encountered a problem while using Mumit Khan's egcs-1.1.2 release.
>
> (~$ g++ --version
> egcs-2.91.66 )
>
> the following small test program doesn't compile with egcs-1.1.2
Hmmm ... looks like a bug, but I need to check "the book" first. You
may want to send this off to egcs-bugs as well.
BTW, the workaround is the following (which is used by pretty much all
older code using STL since the operator-> is reasonably new):
std::string str = "";
for(PairsOfStrings::const_iterator p=d.begin();p!=d.end();p++) {
// the following line doesn't compile with egcs:
str += (*p).first + (*p).second;
//...
}
Regards,
Mumit
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com