This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bug in egcs-1.1.2?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]