| www.delorie.com/archives/browse.cgi | search | 
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm | 
| Sender: | cygwin-owner AT sourceware DOT cygnus DOT com | 
| Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com | 
| Message-Id: | <199905182247.RAA02764@venus.xraylith.wisc.edu> | 
| To: | mike DOT fabian AT it-mannesmann DOT de | 
| cc: | cygwin AT sourceware DOT cygnus DOT com | 
| Subject: | Re: bug in egcs-1.1.2? | 
| In-reply-to: | Your message of "Tue, 18 May 1999 10:48:31 CDT." | 
| <199905181548 DOT KAA18432 AT thor DOT xraylith DOT wisc DOT edu> | |
| Date: | Tue, 18 May 1999 17:47:34 -0500 | 
| From: | Mumit Khan <khan AT xraylith DOT wisc DOT edu> | 
Mike Fabian <mike DOT fabian AT it-mannesmann DOT 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 AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy | 
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |